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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setuid root? 1

Status
Not open for further replies.
Joined
Feb 1, 2001
Messages
116
Location
US
I have a application that when I try and execute it as a standard user it says "This program can only be run by root, or it must be setuid root"

What does it mean when it says "setuid root"?

Thanks
 
suid is a special bit to a file to allow it to execute with root. It will look something like: r--sr-xr-x.
 
Like this...
Code:
    chown root programname
    chmod 4755 programname
Of course you need to be root to do these commands.

Hope this helps.

 
A star for you SamBones since you answered before me...:)
 
Thanks for the star, but be very careful what you do this to. If you do these commands to something like "[tt]/bin/ksh[/tt]", then every Korn shell user is [tt]root[/tt] as soon as they log in.

Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top