LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2011, 11:39 PM   #1
linux_nfg
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
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!
 
Old 09-02-2011, 12:13 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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
 
Old 09-02-2011, 12:31 AM   #3
linux_nfg
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
log of deletion from samba server bagra Linux - Newbie 1 09-16-2010 01:05 PM
log file deletion on AIX syslog Dr_Death_UAE AIX 1 03-15-2009 03:08 PM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 12:36 PM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 10:51 AM
Time Of Deletion Log? XAGXAGUL Linux - General 3 07-12-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration