Find the answer to your Linux question:
Results 1 to 5 of 5
Hey all- I don't know how I've managed to mess this one up, but in the midst of securing my webserver (ie. changing default SSH port, add new user, disable ...
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Location
    Burlington, VT
    Posts
    7

    Centos5.5 - Can't su - : incorrect password.

    Hey all-

    I don't know how I've managed to mess this one up, but in the midst of securing my webserver (ie. changing default SSH port, add new user, disable root SSH) I seem to have broken su functionality....somehow.

    When I ssh as my user "lockdown" I attempt to "su -" and immediately am prompted with "su: incorrect password"

    Code:
    lockdown[ at ]bag [~]# su
    su: incorrect password
    lockdown[ at ]bag [~]#
    I re-enabled root SSH login (via editing /etc/ssh/sshd_config) and I'm able to SSH as root no problem, however I can't su even from root to another user, getting the same behavior and error message..

    Code:
    root[ at ]bag [~]# su lockdown
    su: incorrect password
    root[ at ]bag [~]#
    Here are my permissions for /bin/su ...

    Code:
    root[ at ]bag [/]# ls -l /bin/su
    -rwSr-xr-- 1 root wheel 28336 Feb 28  2010 /bin/su*
    My user "lockdown" is a member of the wheel group, and I haven't edit /etc/pam.d/su or system-auth at all.


    Any input would be greatly appreciated, if more information is needed please let me know! Thanks a bunch..
    - John

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    That is indeed strange. Have you considered resetting the root password?
    http://www.linuxforums.org/forum/lin...-password.html
    I'm not sure it will help or if it even applies directly to your situation, just a thought.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Just Joined! root99's Avatar
    Join Date
    Oct 2010
    Posts
    10
    1.boot in single mode reset the password.
    2.add you user in single mode to sudo ALL =ALL

  4. #4
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6
    Would that work without console access?

  5. #5
    Just Joined! root99's Avatar
    Join Date
    Oct 2010
    Posts
    10
    you can't boot single mode without console access.

Posting Permissions

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