[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SUID



At 1000834035s since epoch (09/18/01 13:27:15 -0400 UTC), Ian Marlier wrote:
> I feel like an idiot asking this, but how does one set something to 
> run SUID?

chmod u+s To setUID to the user that owns the file
chmod g+s To setGID to the group that owns the file

Standard disclaimer: Be VERY careful with setuid programs!  You're
essentially giving anyone the ability to run a program as another user.

Final note: you cannot directly setUID/GID scripts.  So don't bother trying
to setuid a Bash/Shell/Perl script; it won't work.  You need to wrap the
script with a compiled binary to do so.

Jason

--
Jason Healy    |     jhealy@logn.net
LogN Systems   |   http://www.logn.net/



Reply to: