Results 1 to 3 of 3
Coworker says he logs into putty as his normal login, lets say jsmith but when he runs ID on the server he is logged onto it shows root user instead. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-23-2011 #1
- 11-23-2011 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,657
have him check the PS1 variable:
andCode:echo $PS1
maybe id is aliased to a sudo command:Code:echo $USER
check sudo commands:Code:which id
Code:sudo -l
- 11-24-2011 #3Linux Enthusiast
- Join Date
- Jul 2005
- Location
- Maryland
- Posts
- 522
It probably uses root's UID and GID.
To verify it:
Those settings are stored in /etc/passwdCode:id root id jsmith
That's where they can be changed.


Reply With Quote
