From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811731.tru64-unix-managers.marc@archive.invalid> From: Bevan Broun Date: Thu, 21 May 1998 01:41:34 +0000 To: tru64-unix-managers Subject: SUMMARY: ssh wont let me su! X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811731 Thanks to: bchill@bch.net (Brian C Hill) Richard Sharpe Matt J. L. Goebel" Ian Mortimer Peter Chapin Lew Randerson The problem is solved. There is a problem with ssh-1.2.22 and Digital Unix 4.0b depending upon what patches have been applied. I recompiled ssh-1.2.22 and watched a bit more closely and saw the following error: cc: Warning: userfile.c, line 636: In this statement, the referenced type of the pointer value "username" is const, but the referenced type of the target of this assignment is not. if (initgroups(username, gid) < 0) ----------^ Lew Randerson wrote: >Bevan, > >1) ssh-1.2.23 solves the problem. Which it did! this is quite new. > >2) Look at your groups after ssh-ing. You are no longer in the system >group. My solution was to do a > % /bin/su - randerso > % /bin/su - > The first su to myself got me a proper login. I still have the > ssh encryption from my original ssh. The second su let me into > root. The original question was: I have ssh-1.2.22 compiled using cc on Digital UNIX V4.0B (Rev. 564). If I telnet to the machine I can su (Im in the system group) but if I ssh to the machine I get: "You do not have permission to su root" just as if I was not in the system group. BB -- Bevan Broun ph (08) 9380 1587 Computer Systems Officer fax (08) 9380 1065 Dept. Electrical and Electronic Engineering University of Western Australia rm. G70