In my new Gentoo installation, su doesn't work as my non-root user: After entering the correct password I get the message "su: Permission denied". What could be causing this? I have already tried reinstalling the package containng /bin/su
.
EDIT: sudo works.
Best Answer
You have to add your user to the
wheel
group:Alternatively, you can disable the group membership check for
su
inpam
by editingand commenting out this line:
It requires users to be in the
wheel
group to be able to switch user. User switching as non-root works again when thispam
module is disabled forsu
.