LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deletion of syslog.log (https://www.linuxquestions.org/questions/linux-newbie-8/deletion-of-syslog-log-900652/)

linux_nfg 09-01-2011 10:39 PM

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!

chrism01 09-01-2011 11:13 PM

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
Lowercase L there

Also this http://linux.die.net/man/1/getfacl

linux_nfg 09-01-2011 11:31 PM

Quote:

Originally Posted by chrism01 (Post 4459275)
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
Lowercase L there

Also this http://linux.die.net/man/1/getfacl

Thank you Chris. I appreciate the help, I will take it into thought while trying to figure this out.


All times are GMT -5. The time now is 08:52 AM.