Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Mon, 3 Mar 2003 16:30:23 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: jon ewing cc: cygwin AT cygwin DOT com Subject: Re: /etc/passwd and /etc/group question In-Reply-To: <000001c2e1c1$f0ca6950$152ca8c0@int.mediasurface.com> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 3 Mar 2003, jon ewing wrote: > Hi, > > I'm having problems assigning users to multiple groups under cygwin > (latest build under XP on ntfs with ntsec). > > My /etc/passwd file contains: > [snip] > and my /etc/group contains: > [snip] > > 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: > > dev:S-1-5-32-547:547:root > > 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? > > thanks. > jon. Jon, 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". Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ 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! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/