Code: Select all
ls -l /bin/shCode: Select all
lrwxrwxrwx 1 root root 4 Apr 16 21:37 /bin/sh -> bashCode: Select all
ls -l /bin/bashCode: Select all
-rwxr-xr-x 1 root root 767264 Apr 16 21:37 /bin/bashCode: Select all
chmod 0755 /bin/bash
Code: Select all
28 -rws--x--x 1 root root 25024 Mar 17 16:12 /bin/su
Code: Select all
chmod 4711 /bin/su
Code: Select all
userdel smash
adduser smash wheel

Code: Select all
usermod -a -G <groupname> <username>
Code: Select all
gpasswd -a <user> <group>
It seems you are correct, although, as I tested it on my box the error message was different from csfsmash's. With user not in wheel I get this:gentoo_dude wrote:I think the problem was that the user was not in the wheel group.
Code: Select all
$ su -
Password:
su: Permission denied
Sorry.