delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/03/05/18:49:31

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <36E06D16.7D8E06DA@cityweb.de>
Date: Sat, 06 Mar 1999 00:47:34 +0100
From: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: Geoffrey Noer <noer AT cygnus DOT com>
CC: Sergey Okhapkin <sos AT prospect DOT com DOT ru>,
"cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>
Subject: Re: Patch, Version 2: UNIX-like permissions on objects
References: <01BE46C2 DOT 29B35190 AT sos> <36B346C5 DOT 4EE92C15 AT cityweb DOT de> <19990305143523 DOT H746 AT cygnus DOT com>

Geoffrey Noer wrote:
> 
> > Important hints:
> > - The /etc/passwd and /etc/group files _must_ be ok!
> > - The /etc/group file should contain the local groups on stand-alone
> > workstations!
> > - The gids in /etc/passwd should contain the correct membership to
> > the groups,
> >   never gid 513 (nobody)! You should take special care especially on stand-alone
> >   workstations!
> >   Correct example files on a stand-alone workstation (names are only translations from
> >   german NT4, I don't know the english names by own experience):
> >   /etc/passwd:
> >       everyone:*:0:0:::/usr/bin/date
> >       system:*:18:18:::/usr/bin/date
> >       administrator::500:544::/home/admin:/bin/csh
> >       guest:*:501:546:::/usr/bin/date
> >       administrators:*:544:544::/home/admin:/usr/bin/date
> >       corinna::1000:547:Corinna Vinschen:/home/corinna:/bin/tcsh
> >       ftp:*:1002:545::/home/pub:/usr/bin/date
> >   /etc/group:
> >       everyone::0:
> >       system::18:
> >       nobody::513:
> >       administrators::544:
> >       users::545:
> >       guests::546:
> >       powerusers::547:
> >       replication-operator::552:0:::
> >       backup-operators::551:0:::
> 
> This means that our mkgroup program needs to generate these other
> entries, right?

You were too fast, I was yet writing my answer and I wanted to
send this info about /etc/... files again. :)

Another point: A few minutes ago, I've compiled the latest snapshot,
with my patch checked in. I don't have such a problem with ls -l as
you descibed. I think it maybe related to the /etc files.

I have still problems, too. I'm using my patch since I write it
in the end of January, but since I downgraded from SP3 to SP4 this week,
I got new shit in it: ./configure in winsup now crashes, if `ntsec'
is active. Sigh! I think, I have to reinstall my NT! The problems
are not only related to cygwin... :-(

> Overall, I still think we need to get rid of /etc/passwd and
> /etc/group in favor of getting the information from NT itself.
> Cygwin would handle accesses to /etc/passswd and /etc/group
> specially, like /dev/null now.
> 
> What do you think?

IMHO, this wouldn't be the big deal. Especially on workstations,
the decision, which local group is the main group of an user,
is hard to do.

I would like to keep the /etc files for a while, until somebody
knows a sure and correct solution for this attachment problem.

- Raw text -


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