[HELP] stat(), file permission, r/w access : i'm LOST :(
Larry Hall (RFK Partners, Inc)
Mon Mar 1 13:42:00 GMT 1999
At 10:14 PM 3/1/99 +0100, Sebastien Barre wrote:
>administrateur  /etc$ ll
>-rw-r--r-- 1 544 Aucun 27 Feb 26 02:45 group
>-rw-r--r-- 1 544 Aucun 65 Mar 1 21:08 passwd
>-rw-r--r-- 1 544 Aucun 9828 Dec 1 14:00 termcap
>That command (-w) will display 'yes' if the file (here, /etc/group) is
>writable. Apparently, it fails. And fails everywhere in my filesystem. The
>'-w' command is using C<stat>, let's move on :
This is a known bug. testing for file permissions will not return "yes"
unless that permission is given to everyone. This may be related to the
fact that you are the "Administrator" (see below).
>BUT (and it drives me crazy). I CREATED that file, and I'm NOT user 544 !
>(more about this strange fellow below).
544 is the "Administrator" group, which is used as the UID of everyone in
that group. This has been discussed many times on this list and is an NTism.
Larry Hall firstname.lastname@example.org
RFK Partners, Inc. (781) 239-1053
8 Grove Street (781) 239-1655
Wellesley, MA, 02482-7797 http://www.rfk.com
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin