If an executable is SETUID then that means that when it is run, by anyone, it 
will run with the privledges of the 'owner' of the file (ie. run "as" the 
owner). 

First, set an appropriate user ID for it...
~$ chown nobody filename
(I think there is a user called 'nobody' on RH systems? you could just use 
your normal login, whatever that is...)

then set the SETUID bit...
~$ chmod u+s filename

then try 'ls -l filename', and instead of seeing an 'x' for executable, like 
normal, you will see an 's'. ie.

-rwsr-xr-x    1 nobody   root        34348 Apr 19 01:34 filename

note the 's' implies 'executable', but with SETUID, which means that when you 
run 'filename' it will run as the owner, in this case user 'nobody'

hope this helps.
Cheers,
Gareth



On Friday 30 August 2002 19:40, Andy George wrote:
> Installed RedHat 7.3 (Delightful OS, FAAAR too sexy) on a PIII450 and
> decided to give an IRCD a go (Unreal).
>
> It wont start as a standard user, but as ROOT it wont start stating that I
> shouldnt run it as ROOT, that I should SETUID to a different user...  Whats
> SETUID and how do I drive that?
>
> Andy George
> ZL3ST

Reply via email to