su: Permission Denied as root
by cmhuggins from LinuxQuestions.org on (#4TPRQ)
I have finished my current build using the SVN checkout of the book, adding Linux-PAM and CrackLib to my system (yes, I have rebuilt shadow and systemd). Following the directions provided by the SVN BLFS book, running `su - <username>`, all I get is `su: Permission denied` when running it as root. My /etc/pam.d/su is as it looks in the book (provided below). I am currently chrooting into the system with the command provided by the LFS book. Is there a bug that I am unaware of, or did I miss something that should've been painfully obvious?
EDIT: Adding root to the 'wheel' group does not change it
/etc/pam.d/su:
Code:# Begin /etc/pam.d/su
# always allow root
auth sufficient pam_rootok.so
# Allow users in the wheel group to execute su without a password
# disabled by default
#auth sufficient pam_wheel.so trust use_uid
# include system auth settings
auth include system-auth
# limit su to users in the wheel group
auth required pam_wheel.so use_uid
# include system account settings
account include system-account
# Set default environment variables for the service user
session required pam_env.so
# include system session settings
session include system-session
# End /etc/pam.d/su


EDIT: Adding root to the 'wheel' group does not change it
/etc/pam.d/su:
Code:# Begin /etc/pam.d/su
# always allow root
auth sufficient pam_rootok.so
# Allow users in the wheel group to execute su without a password
# disabled by default
#auth sufficient pam_wheel.so trust use_uid
# include system auth settings
auth include system-auth
# limit su to users in the wheel group
auth required pam_wheel.so use_uid
# include system account settings
account include system-account
# Set default environment variables for the service user
session required pam_env.so
# include system session settings
session include system-session
# End /etc/pam.d/su