You are not logged in.
Pages: 1
Hi, on a freshly installed Archlinux machine, I can log in as a root, but I can't su from a normal user. That is, I get the error
$ su
Password:
su: Authentication failureAlthough the password is correct.
Actually, I can't even su from a normal account to itself! That is,
[tk@rudolph ~]$ su tk
Password:
su: Authentication failureAnd the journalctl says
déc. 18 17:22:18 rudolph unix_chkpwd[1129]: check pass; user unknown
déc. 18 17:22:18 rudolph unix_chkpwd[1129]: password check failed for user (tk)
déc. 18 17:22:18 rudolph su[1128]: pam_unix(su:auth): authentication failure; logname=tk uid=1000 euid=1000 tty=pts/0 ruser=tk rhost= user=tk
déc. 18 17:22:20 rudolph su[1128]: FAILED SU (to tk) tk on pts/0(I am aware of the thread telling us to post a complete output of a command, but the complete output of journalctl would take several pages, so I took the liberty of posting just these lines).
I have seen this thread and this one, but
there certainly is not the problem of suid
$ ls -l /usr/bin/su
-rwsr-xr-x 1 root root 31744 7 nov. 18:10 /usr/bin/suAnd, as to the second thread, I checked everything that is said there, and updating root's password didn't help. The /etc/pam.d/su and /etc/pam.d/su-l files are just as they are supposed to be (I have another
machine running Archlinux on which su works correctly, and the files are identical). The version of util-linux is the latest one (2.28.2-2).
Any idea on what is going wrong?
Last edited by kde35 (2016-12-18 17:05:28)
Offline
Just as an experiment, what happens if you try sudo su ? Note that the password you will need is your user password, not the root password (Assuming, of course, you have set up sudo and your user is a member of wheel)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Great! This solves the problem...
sudo su
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?And, of course, according to /etc/fstab, the root partition is mounted with the nosuid option. So all I need to do now is to edit the fstab and reboot. Thank you very much.
Offline
Pages: 1