Re: File permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Robert Spangler <mlists@xxxxxxxxxxxxxxxx> wrote:

>>
How is this possible?  If it is possible what am I missing or not
understanding?  Thnx.
<<

Lamar Owen nailed it in his post: renaming a file means updating its
directory entry and hence requires write permission on the directory, not
the file - which you have as a result of the "other" permissions on the
directory:

drwxrwxrwx   7 root root  4096 Mar 10 13:35 temp

If you want the full story, I have an article on my web site (part of a
magazine series I wrote, years ago) which explains permissions in detail:

http://www.lesbell.com.au/Home.nsf/web/Controlling+Access+to+Files?OpenDocument

(Other articles are at http://www.lesbell.com.au/Home.nsf/Linux?OpenView)

Best,

--- Les Bell
[http://www.lesbell.com.au]
Tel: +61 2 9451 1144


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux