You are not logged in.
Pages: 1
Hi.
I had workable sudo with ALL privileges for my user.
After some upgrade my sudo gone bad. While I try to do command, it asks password 3 times and returns error (3 times bad password)
I cannot say what upgrade it was, because it was some time ago.
I tried reinstall, reset visudo config, and also checked for other user too, but nothing helped.
End of /var/log/auth.log file:
Jul 4 19:08:30 dell sudo: PAM no modules loaded for `sudo' service
Jul 4 19:08:33 dell sudo: PAM no modules loaded for `sudo' service
Jul 4 19:08:34 dell sudo: PAM no modules loaded for `sudo' service
Jul 4 19:08:34 dell sudo: dominik : 3 błędne próby wprowadzenia hasła ; TTY=pts/0 ; PWD=/home/dominik ; USER=root ; COMMAND=/bin/su
Jul 4 19:08:37 dell su: pam_unix(su:session): session opened for user root by dominik(uid=1000)
Reinstalling
pacman -S pambase pam
didn't help
Thanks in advice to any help.
Last edited by dominik232 (2012-07-04 17:14:42)
Offline
That happened to me. I then ran pacman -Syu once more, which updated init scripts and that seemed to fix it---I didn't thoroughly investigate it. I figured there was some pam update that messed it up, but as the quick update fixed it, it was fine. I think I did pacman -Syyu (two y's forces it to refresh).
Last edited by scottro (2012-07-04 17:55:52)
Offline
what is the output of
groups dominik
are you in wheel?
If you aren't add yourself, after doing so try to sudo and post output of
tail /var/log/syslog
Last edited by jwele (2012-07-04 19:35:11)
Offline
I've also upgraded system again with
pacman -Syu
I've already tried to add myself to group wheel
dominik@dell:~$ groups dominik
wheel users
/var/log/syslog.log output
dominik@dell:~$ su -c 'tail /var/log/syslog.log'
Hasło:
Jul 1 09:41:01 dell syslog-ng[507]: Configuration reload request received, reloading configuration;
Jul 2 00:10:44 dell syslog-ng[507]: syslog-ng shutting down; version='3.3.5'
Jul 2 09:21:06 dell syslog-ng[547]: syslog-ng starting up; version='3.3.5'
Jul 3 16:28:48 dell syslog-ng[517]: syslog-ng starting up; version='3.3.5'
Jul 3 16:32:23 dell syslog-ng[517]: syslog-ng shutting down; version='3.3.5'
Jul 3 17:02:39 dell syslog-ng[509]: syslog-ng starting up; version='3.3.5'
Jul 3 20:03:57 dell syslog-ng[509]: syslog-ng shutting down; version='3.3.5'
Jul 3 20:04:23 dell syslog-ng[456]: syslog-ng starting up; version='3.3.5'
Jul 4 19:06:40 dell syslog-ng[456]: syslog-ng shutting down; version='3.3.5'
Jul 4 19:07:02 dell syslog-ng[461]: syslog-ng starting up; version='3.3.5'
dominik@dell:~$
While instaling upgrade i notice this
ostrzeżenie: /etc/pam.d/login zainstalowano jako /etc/pam.d/login.pacnew
What means
warning: /etc/pam.d/login was installed as /etc/pam.d/login.pacnew
Last edited by dominik232 (2012-07-04 23:26:10)
Offline
Offline
So what did you do about it?
Not that that's causing your sudo issue if that started some time ago.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Hi Dominik,
I had the exact same problem you did, I solved it with
pacman -S sudo
Hope this helps for you too,
Offline
I don't know what must I do with .pacnew file at all.
I already have reinstalled my sudo package and also pam and pambase.
Offline
I don't know what must I do with .pacnew file at all.
Offline
Hi Dominik,
I had the exact same problem you did, I solved it with
pacman -S sudo
Hope this helps for you too,
Unfortunately this did not help on my other machine:s
I still do not know what exactly causes/fixes this problem, but after a combination of updating/rebooting(such that new initscripts are in effect)
and reinstalling sudo/pam and pambase it works for me again...
Offline
Pages: 1