This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: NTSEC, passwd/group, and "544"

"Masterson, Dave" wrote:
> Corinna Vinschen wrote:
> > "Masterson, Dave" wrote:
> > > > 544 is the admins group.
> > >
> > > Ok, I see that now from the documentation.  However, what
> > > governs the permissions on the file?
> >
> > Under NT? The permissions set on the parent directory. But this
> > is really MS documentation.
> No, I meant under CYGWIN -- why might the file permissions be displayed
> differently by "ls -l" depending on whether ntsec is turned on or not?

Without `ntsec' the ACL isn't visible for Cygwin so it only knows
of four more or less faked permissions:

rwxr-xr-x    directory or *.{exe,bat,...} or #! file, no r/o attrib
r-xr-xr-x    directory or *.{exe,bat,...} or #! file, r/o attrib
rw-r--r--    each other file, no r/o attribute
r--r--r--    each other file, r/o attrib

> > Sorry, wrong description. On NTFS it always uses the RID then which
> > is substituted by a name in `ls -l' output iff /etc/passwd has a
> > corresponding user entry.
> Okay, I'm on NTFS.  How does NTSEC play into this?  In my case, with NTSEC,
> the file ownership is "544" while, without NTSEC, the file ownership is
> "1897" ("ls -ln" output).

Sigh, wrong description again. The behaviour is identical to that
on FAT. I just had a look into the sources. This was different
in earlier versions. The curent version is roughly based on the
decision "ntsec" = correct, "nontsec" = fast

> > mkpasswd didn't that up to Cygwin-1.1.5-4, it does from 1.1.5-6 on.
> > But it _never_ uses another login name than the one which is given
> > by the NT system (locale dependent). If you want that Cygwin sees
> > admins as root, _you_ have to change the name like the aforementioned
> > `myadmingrp' example.
> Okay, I'll go along with that.  I believe the docs, though, imply that this
> happens from 1.1 on.  See

?? That are only examples. If you misinterpreted that this might be
related to my "non native" English. I have no problems if you decide
to change or rewrite the documentation. It's open source.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer              
Red Hat, Inc.

Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]