This is the mail archive of the
mailing list for the Cygwin project.
Re: /etc/passwd and /etc/group question
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: jon ewing <jon at mediasurface dot com>
- Cc: cygwin at cygwin dot com
- Date: Mon, 3 Mar 2003 16:30:23 -0500 (EST)
- Subject: Re: /etc/passwd and /etc/group question
- Reply-to: cygwin at cygwin dot com
On Mon, 3 Mar 2003, jon ewing wrote:
> I'm having problems assigning users to multiple groups under cygwin
> (latest build under XP on ntfs with ntsec).
> My /etc/passwd file contains:
> and my /etc/group contains:
> I want to add the 'root' user to the 'dev' group. Currently, if the root
> user runs groups:
> root at shuttle (/root) % groups
> admin None Users
> I thought that if I modify the 7th line of the /etc/group file to:
> then root would be added to the dev group. This doesn't work. However, I
> can't figure out how Cygwin is storing group information as no users are
> listed in the /etc/group file against any group, yet groups knows that
> root is in three different groups.
> Can anyone tell me where I'm going wrong?
IIRC, on NT-based systems Cygwin uses the OS itself to store passwords,
group affiliations, etc. The only thing you *can* change by editing
/etc/passwd is the user's primary group. Use Windows tools to add user
"root" to group "dev".
|\ _,,,---,,_ pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`' -. ;-;;,_ igor at watson dot ibm dot com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html