This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: [HELP] stat(), file permission, r/w access : i'm LOST :(
- To: Sebastien Barre <Sebastien.Barre@utc.fr>, cygwin@sourceware.cygnus.com
- Subject: Re: [HELP] stat(), file permission, r/w access : i'm LOST :(
- From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
- Date: Mon, 01 Mar 1999 16:38:09 -0500
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <4.1.19990301211226.016b1250@mail.club-internet.fr>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- References: <4.1.19990301145716.017379b0@mail.club-internet.fr><36DA3AD8.2047C010@uni-duesseldorf.de><4.1.19990301024703.01bbe6d0@mail.club-internet.fr>
- Sender: cygwin-owner@sourceware.cygnus.com
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