![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
permissions
to prohibit 'others' from deleting files, what should we omit: write or execute?
thx |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
The "Write" permission (edit: on the directory).
(load of incorrect crap deleted) Last edited by Jeroenix; 11-24-2006 at 06:18 AM. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
..is it possible to protect one file from deleting, but the rest not (in the same directory)?
|
|
#5
|
|||
|
|||
|
Not that I can see. This changes the way I look at UNIX file permissions a bit.
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |