[HELP] stat(), file permission, r/w access : i'm LOST :(
Larry Hall (RFK Partners, Inc)
lhall@rfk.com
Mon Mar 1 13:42:00 GMT 1999
At 10:14 PM 3/1/99 +0100, Sebastien Barre wrote:
>administrateur [27] /etc$ ll
>total 7
>-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 lhall@rfk.com
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 cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list