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 From: "jon ewing" To: Subject: /etc/passwd and /etc/group question Date: Mon, 3 Mar 2003 20:17:35 -0000 Message-ID: <000001c2e1c1$f0ca6950$152ca8c0@int.mediasurface.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal 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: SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: root::500:544:U-SHUTTLE\Administrator,S-1-5-21-1935655697-287218729-7253 45543-500:/root:/bin/bash guest::501:546:U-SHUTTLE\Guest,S-1-5-21-1935655697-287218729-725345543-5 01:/tmp:/bin/bash jon::1003:547:Jon Ewing,U-SHUTTLE\jon,S-1-5-21-1935655697-287218729-725345543-1003:/home/j on:/bin/bash dba::1004:547:Database Administrator,U-SHUTTLE\dba,S-1-5-21-1935655697-287218729-725345543-1004 :/home/dba:/bin/bash sshd::1005:513:SSH Daemon,U-SHUTTLE\sshd,S-1-5-21-1935655697-287218729-725345543-1005:/var/ empty:/bin/false and my /etc/group contains: SYSTEM:S-1-5-18:18: None:S-1-5-21-1935655697-287218729-725345543-513:513: admin:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Network Configuration Operators:S-1-5-32-556:556: dev:S-1-5-32-547:547: Remote Desktop Users:S-1-5-32-555:555: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: HelpServicesGroup:S-1-5-21-1935655697-287218729-725345543-1001:1001: 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. -- 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/