Comments (6)
Hi and thanks for the report! Are you using the latest git version or a previous release? I've had the same problem in the past, but I thought it was fixed now.
Also, do you have an idea of the command that caused the problem? What distro are you using?
from autojump.
I have the same problem. I'm using autojump 14 on OS X installed via brew.
To reproduce just cd
as root into another directory:
$ ls -l ~/.autojump_py
-rw------- 1 neuman staff 17025 Mar 28 11:29 /Users/neuman/.autojump_py
$ sudo -s
# cd /tmp
# ls -l /Users/neuman/.autojump_py
-rw------- 1 root staff 17025 Mar 28 11:44 /Users/neuman/.autojump_py
# exit
$ j
Problem with autojump database, trying to recover from backup...
Traceback (most recent call last):
File "/usr/local/bin/autojump", line 132, in <module>
path_dict=open_dic(dic_file)
File "/usr/local/bin/autojump", line 117, in open_dic
shutil.copy(dic_file+".bak",dic_file)
[...snip...]
IOError: [Errno 13] Permission denied: '/Users/neuman/.autojump_py'
from autojump.
I can confirm this as a bug as well. Using autojump 14 on OSX, but appears to be present in the latest git as well.
Same issue as luciferous.
from autojump.
I've just pushed a tentative fix. I can't test it because sudo is properly better configured under Arch, so I can't reproduce the problem. However I believe this patch should fix the problem. Can you confirm?
from autojump.
I can't do any in-depth testing right now, but so far the issue looks fixed! ~/.autojump_py didn't change ownership after a sudo -s
session.
Thanks!
from autojump.
Great! I'll close the issue for now; don't hesitate to re-open if needed.
I'll probably wait a week or so to make sure everything is ok, then I'll make a new release.
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.