delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/10/16:43:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A0C6BE6.C3EDF488@redhat.com>
Date: Fri, 10 Nov 2000 22:43:02 +0100
From: Corinna Vinschen <vinschen AT redhat DOT com>
Reply-To: "'cygwin'" <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: NTSEC, passwd/group, and "544"
References: <C322F78942E6D311AF8800D0B73C4FD8830DC9 AT CUPEX3 DOT rational DOT com>

"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.

> > If ntsec is off, the ownership might be faked dependent of the
> > contents of /etc/passwd.
> 
> How?  Does it simply assume that all files are owned by the current user
> (ie. leave it to Windows to arbitrate access to the file)?

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.

On FAT it always assums the current user is the owner regardless
of the ntsec setting.

> > myadmingrp::544:513:,S-1-5-32-544::/bin/false
> 
> I thought mkpasswd (without "-s") would do this by default (but "root"
> instead of "myadmingrp").
> [...]
> > > BTW, mkpasswd and mkgroup did not make the "root" account/group
> 
> > Sure. They are not intended to do it by themselves. It's _your_
> > choice.
> 
> By my choice, do you mean my choice for adding "-s" to the command line?  Or
> do you mean that mkpasswd doesn't add these accounts at all and its my
> choice to add them by hand?

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.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
Red Hat, Inc.
mailto:vinschen AT redhat DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019