This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

/etc/passwd and /etc/group question


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]