su: Permission Denied
I get the following error when I try to login in as root.
fanfan@Desky ~ $ su
su: Permission denied
I've tried gpasswd -a <fanfan> wheel, but I get -su: fanfan: No such file or directory.
I can login as root, but I can't use su.
Any help MUCH appreciated.
You're certain you're a member of the 'wheel' group? Run the 'groups' command to check.
I take it you didn't change the permissions of 'su'? What's the output of 'ls -l /bin/su'?
Ok, I am not a member of the wheel group apparently. I ran gpasswd -a <fanfan> wheel to make myself part of wheel, but I get the error bash: fanfan: No such file or directory Am I doing this wrong?
Thanks a lot Cabhan, I now at least know what the problem is.
I assume the username is 'fanfan'? Run this command as root:
You then need to fully logout from the system. You can then login as fanfan, and you should be a member of the group.
gpasswd -a fanfan wheel
Looks just like a syntax error then hehe.
Also, don't forget that your groups won't change until you log out, then log back in.