Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, What could be the reason that I cannot su to root ??? The password is definitely the right one, I checked it also by typing it as a command ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    2

    Question no "su root" possible


    Hi,

    What could be the reason that I cannot su to root ??? The password is definitely the right one, I checked it also by typing it as a command in cli in cleartext, and if I completely log off and log in as root it works, but logging in as user and then su to root - not working. ?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Post the contents of your /etc/pam.d/su file.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Location
    Canada
    Posts
    42
    I'm guessing that you haven't added yourself to the 'wheel' group.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2006
    Posts
    4
    my guess is that "su" defaults as root. try just "su" then enter your root password. if you had a user named johndoe, to "switch to user" would be "su johndoe" other than that "su" alone switches the user to root.

  6. #5
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    Quote Originally Posted by ninjamaster View Post
    my guess is that "su" defaults as root. try just "su" then enter your root password. if you had a user named johndoe, to "switch to user" would be "su johndoe" other than that "su" alone switches the user to root.
    You are exactly right.

Posting Permissions

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