Results 1 to 5 of 5
  1. #1
    Join Date
    May 2003
    Posts
    852

    su - root su: incorrect password

    Hello

    when log in via user in wheel group it works

    but when su to root
    it show incorrect password

    /etc/pam.d/su

    Code:
    #%PAM-1.0
    auth       sufficient   /lib/security/$ISA/pam_rootok.so
    # Uncomment the following line to implicitly trust users in the "wheel" group.
    #auth       sufficient   /lib/security/$ISA/pam_wheel.so trust use_uid
    # Uncomment the following line to require a user to be in the "wheel" group.
    #auth       required     /lib/security/$ISA/pam_wheel.so use_uid
    auth       required     /lib/security/$ISA/pam_stack.so service=system-auth
    account    required     /lib/security/$ISA/pam_stack.so service=system-auth
    password   required     /lib/security/$ISA/pam_stack.so service=system-auth
    # pam_selinux.so close must be first session rule
    session    required     /lib/security/$ISA/pam_selinux.so close
    session    required     /lib/security/$ISA/pam_stack.so service=system-auth
    # pam_selinux.so open and pam_xauth must be last two session rules
    session    required     /lib/security/$ISA/pam_selinux.so open
    session    optional     /lib/security/$ISA/pam_xauth.so
    id
    Code:
    uid=32006(admin) gid=32010(admin) groups=10(wheel),32010(admin)

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    Try this and have a check.

    chmod 4755 /bin/su

    /bin/su should have permission as follows.
    -rwsr-xr-x
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    May 2003
    Posts
    852
    Hi
    [admin@ns1 ~]$ su - root
    Password:
    su: incorrect password
    [admin@ns1 ~]$

    still not working

    but when giving normal shell access to user admin
    and restarting shell service

    that time I can use us - root

    any idea ??

  4. #4
    Join Date
    Jul 2004
    Location
    Atlanta, GA
    Posts
    253
    Does this server have cPanel/WHM or another control panel? If so does the password you are trying to use to su - work when trying to login to the control panel as root?
    -steve

  5. #5
    Su? Use sudo [http://www.gratisoft.us/sudo/] instead.
    Silicon Valley Web Hosting - Bay Area Bare-Metal and 1U to Full Rack Colocation

    www.svwh.net

Posting Permissions

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