Problem:- Switch user or su – was not working, because /bin/su permission was wrong, by mistake few days before i ran the chmod 755 commands on some file, i found that issue after checking my history as well.
1. Switch user not working.
[myuser@myserver ~]$ su – root
Password:
su: Authentication failure
2. observe permission of /bin/su.
[root@myserver ~]# ls -l /bin/su
-rwxr-xr-x. 1 root root 31476 May 22 15:03 /bin/su
3. i did correction of /bin/su
[root@myserver ~]# chmod 4755 /bin/su
[root@myserver ~]# ls -l /bin/su
-rwsr-xr-x. 1 root root 31476 May 22 15:03 /bin/su
4. after that switch user is working properly.
[myuser@myserver ~]$ su – root
Password:
[code]
Jul 31 14:50:06 myserver.linuxmylife.com unix_chkpwd[10705]: check pass; user unknown
Jul 31 14:50:08 myserver.linuxmylife.com unix_chkpwd[10706]: check pass; user unknown
Jul 31 14:50:08 myserver.linuxmylife.com unix_chkpwd[10706]: password check failed for user (root)
Jul 31 14:50:08 myserver.linuxmylife.com su[10702]: pam_unix(su-l:auth): authentication failure; logname=root uid=511 euid=511 tty=pts/4 ruser=myuser rhost= user=root
[/code]
related posts
» Security » switch user (su -) not working.
« Windows Software shortcuts Pink Tea save you from extreme winter (snow weather) »