![]() |
|
|
|
|
|||||||
| 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 |
| df -k and deleting files | ajayr111 | UNIX for Dummies Questions & Answers | 4 | 03-14-2007 04:03 PM |
| Deleting Files | bc4 | UNIX for Dummies Questions & Answers | 1 | 01-25-2007 07:27 PM |
| Deleting files | BG_JrAdmin | SUN Solaris | 1 | 11-28-2006 09:17 PM |
| Deleting old files | shiroh_1982 | Shell Programming and Scripting | 2 | 06-21-2006 01:42 AM |
| Deleting the files | livetaurean19 | Shell Programming and Scripting | 0 | 06-16-2005 01:16 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
deleting another user's files
hi, I have two users, let us call them A and B.
I do as User A touch tmpfile chmod 700 tmpfile Now as User B I do rm tmpfile - and it allows me to do it (after prompting me)...why? If I had done chmod 777 tmpfile, then sure User B should be able to delete it, but I did chmod 700 tmpfile, so why was User B allowed to delete? Thanks. |
| Forum Sponsor | ||
|
|
|
|||
|
Because whether or not you are allowed to delete a file depends on the rights (namely write) on the directory containing the file, not on the rights on the file itself. You can imagine a directory to be a file containing entries of the files in it.
|