Greetings,
I screwed up royally. Details, details.
I was trying to secure the su command and let only certain users execute it.
Keep in mind that I totally forgot about pam.
What I did was:
$ groupadd suers
$ vi /etc/group
~
suers:x:550:root,joe
~
$ chown root:suers /bin/su
Then when I tried to:
$ su -
Password:
Password Incorrect
$
even though I can logout and login as root. So I know I am not crapping on
the root passwd.
I know now that all I had to do is uncomment certain lines in /etc/pam.d/su
and active the trusted group 'wheel' (and add certain people to wheel).
I tried to undo everything by:
$ chown root:root /bin/su
$ vi /etc/group
~
# suers:x:550:root,joe
~
But I still get the same "Password Incorrect". If I try to vi /etc/pam.d/su
to activate 'wheel' as a trusted group, I do not get a chance to insert a
password... after I '$ su -', I get 'Password Incorrect' automatically.
This is a dodo question but can I reinstall su or pam and will that correct
everything?
Joe