Re: /etc/group not being read
On Tue, Nov 05, 2002 at 04:30:17PM -0500, James D Below wrote: > After seeing permissions and ownerships not updating properly. I stopped > the sshd service and started it back up. > > After that, the group permissions were correctly being assigned. Great. > Should I have had to restart the ssh service? No > When does cywin read /etc/group and /etc/passwd. I was imagining it to be > the manner as other unix/linux OSes. It rereads the files when they are modified. That works fine here. There have been reports of problmes with network drives, although the symptoms were different. Is your /etc on a local or a network drive? Pierre -- 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/
Re: /etc/group not being read
After seeing permissions and ownerships not updating properly. I stopped the sshd service and started it back up. After that, the group permissions were correctly being assigned. Should I have had to restart the ssh service? When does cywin read /etc/group and /etc/passwd. I was imagining it to be the manner as other unix/linux OSes. thanks for your help. James Below Phone - 216-433-6508 RS Information Systems, Inc. Email - [EMAIL PROTECTED] NASA Glenn Research Center 21000 Brookpark Road Mailstop 142-1 Cleveland, OH 44135 -- 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/
Re: /etc/group not being read
On Tue, Nov 05, 2002 at 01:59:12PM -0500, James D Below wrote: > here are the exact command/files: > > $ id > uid=1084(xxjames) gid=512(Domain Admins) groups=1078(clearcase),512(Domain > Admins),513(Domain Users),1077(ncp),1023(ncppc),1005(NCPSERVE),1006(nice) Was that after or before login into ssh? Are you sure there is only one /etc/group file in your system and the mount points are the same for sshd and you? Verify before and after ssh login. Wait, it must be OK because editing passwd seems to have an effect Another verification is to edit group and change some text, e.g. Domain Users -> X and see if it has any effect. > $ cat /etc/group > SYSTEM:S-1-5-18:18: > clearcase:S-1-5-21-24129212-729888505-1120166462-1078:1078: > Domain Admins:S-1-5-21-24129212-729888505-1120166462-512:512: > Domain Guests:S-1-5-21-24129212-729888505-1120166462-514:514: > Domain Users:S-1-5-21-24129212-729888505-1120166462-513:513: > ncp:S-1-5-21-24129212-729888505-1120166462-1077:1077:xxjames > ncp_modoc:S-1-5-21-24129212-729888505-1120166462-1095:1095: > ncppc:S-1-5-21-24129212-729888505-1120166462-1023:1023: > NCPSERVE:S-1-5-21-24129212-729888505-1120166462-1005:1005: > nice:S-1-5-21-24129212-729888505-1120166462-1006:1006: I cut and pasted your group, changed my passwd gid to 1077 in my passwd. ~> ssh localhost Last login: Tue Nov 5 11:34:19 2002 from localhost Fanfare!!! You are successfully logged in to this server!!! PHumblet@PHumblet ~ $ id uid=11054(PHumblet) gid=1077(ncp) groups=1077(ncp) * When I restart Cygwin I also see ~: id uid=11054(PHumblet) gid=1077(ncp) groups=1077(ncp) > > Before sending this to you I tried to change it from 1077 to 513 but id > still shows it as "512" Is that before or after ssh login? > I have no idea what is going on now. Very strange. > I wonder if there is a registry setting that is holding onto the gid. No registry, the gid is purely a Cygwin thing. Let's clarify if changing the gid in passwd affects id when you restart Cygwin if the mounts are the same before and after you ssh if the problem persists if you stop and restart sshd What version are you using? (uname -a) Pierre -- 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/
Re: /etc/group not being read
here are the exact command/files: $ id uid=1084(xxjames) gid=512(Domain Admins) groups=1078(clearcase),512(Domain Admins),513(Domain Users),1077(ncp),1023(ncppc),1005(NCPSERVE),1006(nice) $ cat /etc/group SYSTEM:S-1-5-18:18: clearcase:S-1-5-21-24129212-729888505-1120166462-1078:1078: Domain Admins:S-1-5-21-24129212-729888505-1120166462-512:512: Domain Guests:S-1-5-21-24129212-729888505-1120166462-514:514: Domain Users:S-1-5-21-24129212-729888505-1120166462-513:513: ncp:S-1-5-21-24129212-729888505-1120166462-1077:1077:xxjames ncp_modoc:S-1-5-21-24129212-729888505-1120166462-1095:1095: ncppc:S-1-5-21-24129212-729888505-1120166462-1023:1023: NCPSERVE:S-1-5-21-24129212-729888505-1120166462-1005:1005: nice:S-1-5-21-24129212-729888505-1120166462-1006:1006: $ cat /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-NCP\Administrator,S-1-5-21-24129212-729888505-1120166462-500:/u/Administrator:/bin/bash xxjames:unused_by_nt/2000/xp:1084:1077:James Below,U-NCP\xxjames,S-1-5-21-24129212-729888505-1120166462-1084:/u/xxjames:/bin/tcsh With or without the "-u" had no affect. I don't have telnet access configured on this box. Before sending this to you I tried to change it from 1077 to 513 but id still shows it as "512" I have no idea what is going on now. I wonder if there is a registry setting that is holding onto the gid. At 12:09 PM 11/05/2002 -0500, you wrote: On Tue, Nov 05, 2002 at 11:19:47AM -0500, James D Below wrote: > Hi All, > > I am having a problem with my /etc/group file not being read when logging > in with ssh. I am running w2k sp3, using ntsec. > > I ran mkgroup -d -o 0 -u > /etc/group to create the group file > and mkpasswd -d -o 0 > /etc/passwd > > I am trying to use a global group "ncp" as my primary group, but the only > group IDs that I am able to use "setgid" on are local gids. (mkgroup -l) I am unable to reproduce your problem (on NT4). You only sent us the output of mkgroup, but not what's actually in /etc/group.. Does it occur also if you build /etc/group without the -u ? Also why do you specify -o 0 ? It's not the cause of your problem but as you noticed you then have two different Windows groups (sid #) with the same gid. Can you telnet in? If so, what is the output of id? You are welcome to send me your /etc/group file if you wish (as an attachment), I will try it here. Pierre -- 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/ James Below Phone - 216-433-6508 RS Information Systems, Inc. Email - [EMAIL PROTECTED] NASA Glenn Research Center 21000 Brookpark Road Mailstop 142-1 Cleveland, OH 44135 -- 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/
/etc/group not being read
Hi All, I am having a problem with my /etc/group file not being read when logging in with ssh. I am running w2k sp3, using ntsec. I ran mkgroup -d -o 0 -u > /etc/group to create the group file and mkpasswd -d -o 0 > /etc/passwd I am trying to use a global group "ncp" as my primary group, but the only group IDs that I am able to use "setgid" on are local gids. (mkgroup -l) here is my local groups. I can change my gid in /etc/passwd to any of these and ssh logins work great. MODOC [/etc] 109%mkgroup -l SYSTEM:S-1-5-18:18: None:S-1-5-21-515967899-1645522239-682003330-513:513: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power Users:S-1-5-32-547:547: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: These are my domain global groups which are also stored in /etc/group. For this email I left off the "-u". Only 513 works, since it is also a local group. If I change my group to 1078 or 1077, I get the "setgid: Invalid arguement" error. MODOC [/etc] 111%mkgroup -d -o 0 SYSTEM:S-1-5-18:18: clearcase:S-1-5-21-24129212-729888505-1120166462-1078:1078: Domain Admins:S-1-5-21-24129212-729888505-1120166462-512:512: Domain Guests:S-1-5-21-24129212-729888505-1120166462-514:514: Domain Users:S-1-5-21-24129212-729888505-1120166462-513:513: ncp:S-1-5-21-24129212-729888505-1120166462-1077:1077: ncp_modoc:S-1-5-21-24129212-729888505-1120166462-1095:1095: ncppc:S-1-5-21-24129212-729888505-1120166462-1023:1023: NCPSERVE:S-1-5-21-24129212-729888505-1120166462-1005:1005: nice:S-1-5-21-24129212-729888505-1120166462-1006:1006: MODOC [/etc] 112% I read through the cygwin NT sec documents. It is my understanding that this should work. Does anyone have any insight to what may be causing this? thanks. James Below Phone - 216-433-6508 RS Information Systems, Inc. Email - [EMAIL PROTECTED] NASA Glenn Research Center 21000 Brookpark Road Mailstop 142-1 Cleveland, OH 44135 -- 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/