You are not logged in.
Pages: 1
I have a headless install. I followed the install instructions. I haven't installed anything outside of what the instructions ask for. network is working.
I installed sudo, and set it up to allow users in the sudo group to use it. added the user to the correct group. all good.
It won't take my password. I know I'm typing it correctly because passwd works ( don't change it, just attempt to change it)
I had this problem the last time I installed arch as well, but I can't remember what I did to fix it.
I've googled and tried about a zillion different things. turning on systemd-homed, then turning it of. installing pambase. no joy
sometimes it just asked me for my passed again, and sometimes get the error
sudo: pam_open_session: Permission denied
sudo: policy plugin failed session initialization
I reset faillock after trying something else.
Sometimes I get this error in the log
sudo[1120]: pam_open_session: Permission denied ; TTY=pts/0 ; PWD=/home/jonross ; USER=root ; COMMAND=/usr/bin/ls
and sometimes I get this one:
sudo[1120]: PAM _pam_load_conf_file: unable to open config for nss-auth
no idea why it's flips back and forth.
this is the only distro I've ever used where I can't get sudo to work out of the box. I'm about to give up and go back to gentoo.
Offline
What is the contents of /etc/sudoers? Also what groups is the user you are testing with in `groups`?
What changes if any have you made to the system's pam configuration and nsswitch.conf?
Offline
The sudoers is stock except for the addition of:
%sudo ALL=(ALL:ALL) ALL
the user is in the correct group.
I have not done anything w/ pam or nsswtich.conf
Last edited by jr_west (2022-09-13 17:05:28)
Offline
https://bbs.archlinux.org/viewtopic.php?id=57855
Edit:
$ pacman -Qkk `pacman -Qqo /etc/pam.d`
# cat /etc/sudoers
$ groups
$ whoami
$ sudo ls /dev/null
Last edited by loqs (2022-09-13 17:28:55)
Offline
The sudoers is stock except for the addition of:
%sudo ALL=(ALL:ALL) ALL
Please post the full verbatim contents of /etc/sudoers.
Unlike most other config files the order of the lines is very important and having them in the wrong place can drastically change the behaviour.
Offline
Pages: 1