Comments (17)
Hi jostein,
Do you have the latest version? I used to have a similar problem, but I thought I have fixed it in a recent commit.
from autojump.
I tried the latest git version today, but the same error occurs. If I try to reset the the permissions manually to "jostein, users" it is immediately reset to "root, root".
from autojump.
Seems like I closed this, but this issue is still open.
from autojump.
Hi!
I'm sorry this is still an issue for you. I'll try to investigate, but it will be a bit difficult since I haven't had the problem myself for a while.
In the meantime, could you send me all the information that seems relevant to you? Examples: content of the $PROMPT_COMMAND variable, permissions and ownership on the folder and all the files in ~/.local/share/autojump, content of autojump_errors, shell you're using, ...
from autojump.
Here it is:
A. Output of $PROMPT_COMMAND
: ; { (autojump -a "$(pwd -P)"&)>/dev/null 2>>${AUTOJUMP_DATA_DIR}/.autojump_errors;} 2>/dev/null
B. Permisssions and ownership folder
drwxr-xr-x 2 jostein users 4096 2010-10-27 06:06 autojump
C. Files in autojump folder
~/.local/share/autojump> ls -l
total 8
-rw------- 1 root root 1445 2010-10-27 06:06 autojump_py
-rw------- 1 jostein users 1190 2010-10-27 05:05 autojump_py.bak
D. Content of autojump errors
This is always the same as I posted in my first post. Autojump worked fine for a while, and then I started getting this error.
E. echo $SHELL
/bin/bash
from autojump.
Some more questions: do you often work as root? What do you use? su? sudo? Do you remember what you were doing (especially as root) when the problem appeared?
from autojump.
I work as root only when needed to do system configs. I have now downloaded the latest git version, removed the ~/.local/share/autojump directory and reinstalled autojump. The permissions for the directory seems right now. I will check what happens again after reboot.
from autojump.
Thanks a lot for your help!
from autojump.
It seems like the file ~/.local/share/autojump_py gets its permissions changed to "root, root" as soon as I log in as root with su. After that the error start occuring. I have also tried "su -m" and "su -", but that seemed not to make any difference.
For some reason root seems to affect the autojump_py file and changes its permissions just by logging in to the root user.
from autojump.
Actually "su -" seems to work differently, and does not affect the permissions on the discussed file.
from autojump.
Great news: thanks to your explanations, I've finally been able to reproduce the problem. I'll try to work on a fix this week end.
from autojump.
Thanks! I use an alias from su to "su -" for my bash shell now so it works fine.
from autojump.
I've just pushed a fix for this problem, can you tell me if you still have the problem with "su"?
from autojump.
Autojump works correctly with "su" now if I don't cd outside the home directory when root. If I f.ex. cd to the root directory the same error occurs after "su username".
from autojump.
Huh, weird, I don't have the same problem.
Did you unset the PROMPT_COMMAND (or reboot) since upgrading?
from autojump.
"unset PROMPT_COMMAND" in .bashrc seemed to solve the problem. Everything works fine now. Thanks!
from autojump.
Great to know it works for you!
Just note that you shouldn't need to unset the prompt command in your bashrc, it should only be needed once when upgrading.
from autojump.
Related Issues (20)
- Suggestion: cd into typed dir if available
- Unsupported shell: /bin/csh
- autojump_chpwd:4: permission denied: autojump
- Is this repo maintained? HOT 2
- update README.md
- Cant clone the git repository with the given git clone command HOT 2
- Autojump Does Not Work Inside of Bash Script HOT 1
- How to fix when I input '-' , but terminal show '_j:compadd:5: bad option: -_' HOT 1
- How did you create executable that is readable in Python? HOT 1
- possible bug when search string starts with all
- Is there any way to disable printing the jump path when jumping? HOT 3
- changing binding HOT 1
- How can I install autojump for cygwin?
- jo and jco gives errors in zsh terminal on Manjaro KDE 5
- zsh: command not found J - Mint Cinnamon HOT 2
- Error when Python 2 is not installed. HOT 3
- "string not in pwd" error on Mac
- Initialization warning: plugin 'autojump' not found
- alpine bug :Unsupported shell: /bin/ash
- Does autojump support MacOS M1 chips HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autojump.