www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "jon ewing" <jon AT mediasurface DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: /etc/passwd and /etc/group question |
Date: | Tue, 4 Mar 2003 06:41:15 -0000 |
Message-ID: | <000001c2e219$0e31ce00$152ca8c0@int.mediasurface.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
In-Reply-To: | <Pine.GSO.4.44.0303031627000.25599-100000@slinky.cs.nyu.edu> |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
> > 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 Works great. I *really* should have thought of that :( Thanks, jon. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |