I am running Linux Slackware 14.0. I wanted to allow to do
su only to the members of wheel group, so I modified the permissions of
/usr/bin/sudo files to this:
bash-4.2# ls -la /bin/su -rws--s--- 1 root wheel 59930 Sep 14 2012 ./su bash-4.2# ls -la ./sudo -rws--s--- 1 root wheel 107220 Jun 29 2012 ./sudo
Now when I am a member of wheel group and run
su, it promts for password, I enter it. No errors are shown, but doesn't switch me to root. Probably, I set some permissions wrong?