Find the answer to your Linux question:
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.
  1. #1
    Linux Enthusiast carlosponti's Avatar
    Join Date
    Dec 2004
    Location
    Oklahoma
    Posts
    560

    Odd issue with putty


    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. also the CL prompt information says root@serverinquestion. Any reason for this?
    Blog
    Registered Linux user 396557

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    have him check the PS1 variable:
    Code:
    echo $PS1
    and
    Code:
    echo $USER
    maybe id is aliased to a sudo command:

    Code:
    which id
    check sudo commands:
    Code:
    sudo -l

  3. #3
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    It probably uses root's UID and GID.
    To verify it:
    Code:
    id root
    id jsmith
    Those settings are stored in /etc/passwd
    That's where they can be changed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •