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
Permissions srikanths Shell Programming and Scripting 1 04-07-2008 11:38 PM
To give the "unzip" permissions & "create" file permissions Mike1234 HP-UX 3 03-02-2008 02:34 PM
nfs permissions silvaman UNIX for Advanced & Expert Users 2 09-26-2005 07:04 AM
Permissions on /bin josramon UNIX for Advanced & Expert Users 7 04-02-2003 07:50 AM
permissions mma_buc_98 UNIX for Dummies Questions & Answers 1 08-13-2002 02:15 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-24-2006
Registered User
 

Join Date: Nov 2006
Posts: 187
permissions

to prohibit 'others' from deleting files, what should we omit: write or execute?

thx
Reply With Quote
Forum Sponsor
  #2  
Old 11-24-2006
Registered User
 

Join Date: Nov 2006
Posts: 11
The "Write" permission (edit: on the directory).

(load of incorrect crap deleted)

Last edited by Jeroenix; 11-24-2006 at 06:18 AM.
Reply With Quote
  #3  
Old 11-24-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
w for others allows "others" to write to the file.
w for others set for the directory allows delete.

You probably just want world ("others") read. Assuming you want everybody to read a given file.
Reply With Quote
  #4  
Old 11-24-2006
Registered User
 

Join Date: Nov 2006
Posts: 11
..is it possible to protect one file from deleting, but the rest not (in the same directory)?
Reply With Quote
  #5  
Old 11-24-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
Not that I can see. This changes the way I look at UNIX file permissions a bit.
Reply With Quote
  #6  
Old 11-24-2006
Registered User
 

Join Date: Nov 2006
Posts: 187
intersting. so having a folder with these permissions:
drwxr-x---

No one (except root and the owner) is allowed to delete a file inside that folder. Right?

Even those users who belong to the group cannot delete files because 'w' on the folder is only affected to the user.

Please let me know if what I am saying is true.

thx
Reply With Quote
  #7  
Old 11-24-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
Correct. Who the files belong to seems to be irrelevant, only the directory bits are considered when deleting; even a file owned by root, set to 000, can be deleted if I own the directory and have write access, or am in a group with write access.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:25 AM.


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

Content Relevant URLs by vBSEO 3.2.0