[Bug 555] If user does a newgrp before envoking ssh, it fails with a setgid error.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed May 7 01:48:17 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=555

           Summary: If user does a newgrp before envoking ssh, it fails with
                    a setgid error.
           Product: Portable OpenSSH
           Version: older versions
          Platform: UltraSparc
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: cknipe at register.com


If a user does a newgrp to change their group id to a group they are a member 
of, which is not their primary group, ssh gets upset.  For example:

ichernysh at ofdb02:/home.local/ichernysh$ id -a
uid=3059(ichernysh) gid=506(dba) groups=3059(ichernysh),506(dba)
ichernysh at ofdb02:/home.local/ichernysh$ newgrp dba
ichernysh at ofdb02:/home.local/ichernysh$ ssh 127.0.0.1
setgid 3059: Not owner
ichernysh at ofdb02:/home.local/ichernysh$ ssh 127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 17:68:99:5f:02:ab:70:88:25:bd:88:a2:ef:96:a2:f0.
Are you sure you want to continue connecting (yes/no)?

The version of ssh in question is:
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f

I realize this is fairly old, but I found no reference to this bug anywhere in 
the bug reports for any version.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-unix-dev mailing list