When I commit changes on a SVN repository, I always run into the following problem in the terminal in Ubuntu:
Error reading /home/ssylee/.nano_history: Permission denied
Any ideas how to solve it?
This is usually caused by running
You can verify this by running:
or to spell out that command:
A better habit to get into is to use
By default, this may launch
You can permanently configure
The easiest is to remove the file in question. The next easiest is to make it readable with
I always use this:
It solves the problem when the permissions are messed up.
I would rather do a
first, to see the current permissions. This might help you find out why they went wrong in the first place. If ssylee is the owner of this file, maybe you have a broken default umask?
The fix requires editing the nano configuration file /etc/nanorc and deleting /home//.nano_history.
First comment out the set historylog parameter of nanorc with this command: sudo nano /etc/nanorc
This will disable the ~/.nano_history file used for saving and reading search /replace strings.
This still leaves the .nano_history file in your user directory. Delete this file as follows: