I use rkhunter
and I was wanting to check its logs with:
nano /var/log/rkhunter.log
But nano
outputted this error:
Error reading /home/arthur-dent/.nano_history: Permission denied
Press Enter to continue starting nano.
And if I press ENTER I am able to view the file. I have checked the permissions for that file and they are now:
-rw------- 1 root root 12 May 3 20:26 .nano_history
So I guess that I just change ownership back to me? But as I was literally just using nano
, why would the permissions and ownership (possibly, as I do not know what the original ownership was) just suddenly change? Was it because I was just using it with sudo
, if so, it is odd as nothing like this has ever happend before and I use sudo
with it a lot?
OS Information:
Description: Ubuntu 15.04
Release: 15.04
Package Information:
nano:
Installed: 2.2.6-3
Candidate: 2.2.6-3
Version table:
*** 2.2.6-3 0
500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
100 /var/lib/dpkg/status