Deletion of syslog.log
I have an issue, and have been trying to figure it our all day. I literally started learning Linux over the past 48 hours. I LOVE IT... Once I get out of the Military I am going to go back to school for something pertaining to that... Anyways this is the situation I am in: As the root user I attempted to delete a file called syslog.log The file owner is root and the group membership is also root. The file also exists in the home directory of root (/root).
I used rm -f syslog.log Then received this error message: rm: cannot remove 'syslog.log': operation not permitted I ran ls -l to try and view information about the file: ls -l syslog.log the resulant output line was as follows: -rw-r--r-- 1 root root 3511 sep 1 19:46 syslog.log Questions I have on this are: What caused this to happen? How would I give root deletion permission to this file? What command would allow me to see that root cannot delete this file? Thank you fo the help! Much appreciated! |
Assuming you are logged in as root (use the 'id' cmd to check), have a look at http://linux.die.net/man/1/lsattr & associated cmds.
Also try Code:
ls -lZ Also this http://linux.die.net/man/1/getfacl |
Quote:
|
All times are GMT -5. The time now is 08:52 AM. |