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

Re: suid



> > On Wed, 11 Feb 1998, Erez Doron wrote:
> > >i did chmod 755 filename
> > >the chmod +s filename
> > >so ls gives -rwsr-sr-s 1 root root 8101 feb 11 18:01 filename*
> > -rwsr-sr-x you mean?
> >
> 
> yep, sorry it was -rwsr-sr-x (chmod 4755 filename)

Maybe you meant `chmod 6755 filename'? ;-)

> > >so how do i make my script suid root ?
> > AFAIK, in Linux you don't. Setuid shell scripts are BAD.
> 
> if you write a suid root script without thinking to much, it is badbut if
> you think carefully before doing so, it is not bad, and an easy solution
> to some problems ( better then giving the root password )

It is about as bad...

Why would not you use sudo instead?

> > of reasons. There was various hacks to implement the thing securely, but
> > generally the answer is no.
> 
> so can I or can't I make suid root scripts in tcsh ?

Not directly: Only with a binary wrapper.


Andy

Dr Andy Tsouladze
Unix System Administrator
Motorola Communications Israel
mailto:andyt@mcil.comm.mot.com
mailto:andy@spl.co.il (old)
mailto:andy@environment.negev.k12.il
http://www.spl.co.il/~andy