delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/06/04:26:00

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: <3A067907.68F1C3F9@redhat.com>
Date: Mon, 06 Nov 2000 10:25:27 +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.16 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: <C322F78942E6D311AF8800D0B73C4FD8830DB9 AT CUPEX3 DOT rational DOT com>

"Masterson, Dave" wrote:
> I'm trying to setup the NTSEC feature on Cygwin 1.1 and running into strange
> problems.  With NTSEC turned off, the output of "ls -l .bashrc" looks like
> this:
> 
> -rwxr-xr-x   1 dmasters dev           359 Nov  5 13:47 .bashrc*
> 
> With NTSEC turned on, it looks like this:
> 
> -rwx------   1 544      dev           359 Nov  5 13:47 .bashrc*
> [...]

544 is the admins group. The problem is described in the documentation:

http://sources.redhat.com/cygwin/cygwin-ug-net/ntsec.html#NTSEC-FILES

If ntsec is off, the ownership might be faked dependent of the contents
of /etc/passwd.

If you are member of admins and if you create a file without ntsec
(or in a native environemt at all) the files will not be owned by
you but by the admins group.

You should add an entry for the admins group to /etc/passwd similar
to that one:

myadmingrp::544:513:,S-1-5-32-544::/bin/false

This will fix the output of ls -l in either case. On the other hand,
_if_ you are member of the admins group and _if_ you want that the
files will be owned by you, there's no way around of `ntsec' and/or
using `chown'.

> BTW, mkpasswd and mkgroup did not make the "root" account/group described
> in:
> 
> http://sources.redhat.com/cygwin/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.1

Sure. They are not intended to do it by themselves. It's _your_
choice.

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