Click to See Complete Forum and Search --> : Does SSH limit commands?


VRay
08-16-2001, 11:32 PM
I have noticed when logging in remotely i can't run certain commands i.e. adduser, configure. Is this a security thing? How can i get around it?

TheGimp
08-16-2001, 11:35 PM
ssh should work just like a console, the user you have logged in as probably does not have adduser in it's path or incorrect permissions.

[ 16 August 2001: Message edited by: TheGimp ]

VRay
08-17-2001, 12:58 AM
This is when I su to root! I dunno what is up....

Strike
08-17-2001, 02:42 AM
Try using su - (with a space and a hyphen) instead of plain old su. That forces all environment variables to be renewed from root's profile instead of just inheriting the other users' environment variables.

VRay
08-17-2001, 12:51 PM
Thanks, Strike, that did the trick.