I can no longer sudo

I run Manjaro KDE in one of my laptops. After the latest stable update, I can no longer su or sudo even though I am a member of the wheel group. I am able to login, but I am not able to use su or sudo.

[cribari@darwin6 ~]$ groups cribari
wheel lp sys network power users
[cribari@darwin6 ~]$ su
Password: 
su: Authentication failure

As root, I did EDITOR=nano visudo . The line %wheel ALL=(ALL)..... is uncommented. I changed my password, but the problem remained. Suggestions are welcome. Thanks.

Have you also tried with a newly created user what happens?

Good to see you back, @jsbach! :beers:

Have you tried the following ā”€ see the note about pambase? :arrow_down:

Following your suggestions, I created a new user (which is also a member of the wheel group). The new user is able to sudo without problems.

Thanks, @Aragorn. The only .pacnew file I had in /etc/pam.d was system-login.pacnew and I took care of that (i.e., I merged it). After doing that I was able to login, but not to su or sudo.

1 Like

Have your checked for other recent pacnew files by

grep -E "\.pac(new|save)" /var/log/pacman.log
1 Like

This is what I have:

[cribari@darwin6 ~]$ grep -E "\.pac(new|save)" /var/log/pacman.log
[2018-08-06 17:19] [ALPM] warning: /etc/pacman.conf installed as /etc/pacman.conf.pacnew
[2018-08-18 09:27] [ALPM] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2018-08-18 09:29] [ALPM] warning: /etc/pacman-mirrors.conf installed as /etc/pacman-mirrors.conf.pacnew
[2018-10-25 17:40] [ALPM] warning: /etc/default/grub installed as /etc/default/grub.pacnew
[2018-11-02 21:30] [ALPM] warning: /etc/default/grub installed as /etc/default/grub.pacnew
[2019-02-19 19:57] [ALPM] warning: /etc/pam.d/system-login installed as /etc/pam.d/system-login.pacnew
[2019-05-12 12:09] [ALPM] warning: /etc/fwupd/remotes.d/lvfs-testing.conf installed as /etc/fwupd/remotes.d/lvfs-testing.conf.pacnew
[2019-05-12 12:09] [ALPM] warning: /etc/fwupd/remotes.d/lvfs.conf installed as /etc/fwupd/remotes.d/lvfs.conf.pacnew
[2019-05-12 12:09] [ALPM] warning: /etc/fwupd/remotes.d/vendor.conf installed as /etc/fwupd/remotes.d/vendor.conf.pacnew
[2019-05-17 17:28] [ALPM] warning: /etc/default/grub installed as /etc/default/grub.pacnew
[2019-09-05 15:16] [ALPM] warning: /etc/default/grub installed as /etc/default/grub.pacnew
[2019-10-28 18:34] [ALPM] warning: /etc/makepkg.conf installed as /etc/makepkg.conf.pacnew
[2019-11-14T10:33:43-0300] [ALPM] warning: /etc/fwupd/remotes.d/lvfs-testing.conf installed as /etc/fwupd/remotes.d/lvfs-testing.conf.pacnew
[2019-11-14T10:33:43-0300] [ALPM] warning: /etc/fwupd/remotes.d/lvfs.conf installed as /etc/fwupd/remotes.d/lvfs.conf.pacnew
[2019-11-14T10:33:49-0300] [ALPM] warning: /etc/default/grub installed as /etc/default/grub.pacnew
[2019-12-11T18:38:54-0300] [ALPM] warning: /etc/makepkg.conf installed as /etc/makepkg.conf.pacnew
[2020-02-26T21:56:20-0300] [ALPM] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2020-03-31T21:24:30-0300] [ALPM] warning: /etc/security/limits.d/10-gcr.conf installed as /etc/security/limits.d/10-gcr.conf.pacnew
[2020-04-22T15:39:32-0300] [ALPM] warning: /etc/fwupd/remotes.d/lvfs-testing.conf installed as /etc/fwupd/remotes.d/lvfs-testing.conf.pacnew
[2020-04-22T15:39:32-0300] [ALPM] warning: /etc/fwupd/remotes.d/lvfs.conf installed as /etc/fwupd/remotes.d/lvfs.conf.pacnew
[2020-06-01T17:53:52-0300] [ALPM] warning: /etc/shadow installed as /etc/shadow.pacnew
[2020-08-07T12:54:39-0300] [ALPM] warning: /etc/fonts/fonts.conf installed as /etc/fonts/fonts.conf.pacnew
[2020-08-07T12:55:30-0300] [ALPM] warning: /etc/texmf/web2c/fmtutil.cnf installed as /etc/texmf/web2c/fmtutil.cnf.pacnew
[2020-09-14T10:55:05-0300] [ALPM] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2020-09-14T10:55:09-0300] [ALPM] warning: /etc/pam.d/system-login installed as /etc/pam.d/system-login.pacnew
[2020-09-14T10:55:09-0300] [ALPM] warning: /etc/systemd/logind.conf installed as /etc/systemd/logind.conf.pacnew

I also merged logind.conf.pacnew .

I would try to merge these as well.

2 Likes

The only difference in /etc/locale.gen.pacnew is just a single added and commented-out locale. :wink:

What happens after the sudo su command is issued? (with the original user)

Apparently, that did the trick. Thanks a zillion.

2 Likes

Thank you, @Wollie, @Aragorn, @zoli62. You guys rock! Thanks.

3 Likes

Iā€™m glad it worked! :hugs:

1 Like

Sudo and su should always work. Iā€™m glad it was solved.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.