Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"su -" Permission denied

Status
Not open for further replies.

tekpchak

Technical User
Jan 5, 2005
17
0
0
US
I am just trying to su - on a box from a user account. This works on all the other boxes. I have checked the permissions on the file and it is the same as a machine that works. I checked the /etc/group file to make sure no users were in the wheel group for it.

$su -
su: execute permission denied
$ls -al /usr/bin/su
-r-sr-x--- 1 root wheel 21808 May 11 2004 /usr/bin/su

Any help would be greatly appreciated.
Thanks,
JP
 
Looks like someone disabled the execute perms for su.
Login as root and "chmod o+rx /usr/bin/su".
 
Then why does a different machine have the same permissions and it works?
 
Are you in group wheel on the other machines?
They set it so you must be in group wheel, which I don't believe is a very strong tactic. First, you loose the ability to su, and second by default now you have arbitrary non-root users in group wheel which can be dangerous.
 
Hi
check that the s bit is correctly setup
cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top