[SC.LUG] set user id

Robert Marshall sc at mailman.lug.org.uk
Sun Jul 13 18:15:03 2003


On 13 Jul 2003, Garry Stanway wrote:

> Hi,
> 
> I am a relatively new Linux user in Helsby and I have just subscribed to
> the list. I wonder if someone can help me with what should be quite a
> trivial task.
> 
> I want to run a shell script with root permissions without first doing
> 
> su
> 
> password
> 
> Simple I hear you all cry. Just create the script as root and then use 
> 
> chmod 4755 script
> 
> and it should work.

You can't set scripts to run as root by that method - it would be a big
security hole!
I suggest you use sudo - if you have it if not install it

R
-- 
Robert Marshall