Results 1 to 5 of 5
Thread: su - root su: incorrect password
-
09-01-2007, 12:38 PM #1Web Hosting Master
- 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
Code:uid=32006(admin) gid=32010(admin) groups=10(wheel),32010(admin)
-
09-01-2007, 01:18 PM #2Web Hosting Master
- 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-xDavid | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
09-01-2007, 01:34 PM #3Web Hosting Master
- 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 ??
-
09-01-2007, 06:16 PM #4Web Hosting Guru
- 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
-
09-02-2007, 12:34 AM #5Junior Guru
- Join Date
- Apr 2004
- Posts
- 224
Su? Use sudo [http://www.gratisoft.us/sudo/] instead.