Using nano as root sometimes changes permission on user's .nano_history file, causes an annoying message to appear when launching nano as user
Bug #11242 reported by
Tim Hull
This bug report is a duplicate of:
Bug #58002: Some programs create root-owned files in user $HOME when run under sudo.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nano (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
I have been having a weird problem - I have used nano as root (using sudo) to
edit some system config files.
However, somehow a .nano_history file got written with root ownership in the
user's home directory, and I get the
following message whenever I use nano as user:
Unable to open ~/.nano_history file, Permission denied
Press return to continue starting nano
This is annoying, and I've seen this problem occur in several installations.
To post a comment you must log in.
You need to use sudo -H if you are using a program which will write files to
your home directory.