The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing /cn@0:console file permissions ErnieG Security 4 12-04-2007 04:39 AM
Changing file permissions FredSmith UNIX for Dummies Questions & Answers 7 05-17-2006 05:15 AM
changing default file permissions FredSmith UNIX for Dummies Questions & Answers 8 12-27-2005 10:16 AM
Changing file permissions on upload guix UNIX for Advanced & Expert Users 6 07-13-2004 01:37 PM
changing file permissions gagansharma Shell Programming and Scripting 0 11-27-2001 07:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2007
Registered User
 

Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
Stumble this Post!
changing permissions on a 444 file (ie chmod 444)

if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file.

Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-31-2007
Registered User
 

Join Date: Jul 2005
Location: England
Posts: 183
Stumble this Post!
Only the owner of a file or root may change the permissions on a file no matter what its current permissions maybe.

Root may delete any file. But for any other id there are restrictions as follows: You may delete any file in any directory in which you have write access to even if you do not own the file (unless the sticky bit is set on that directory).

If you have write access to the file, but not the directory it is in, then you may edit it but NOT delete it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0