I recommend sudo also. Your control over how you allow a user to run
something as root is very granular. You can even set what command line
options they can run with a program. Stay away from setuid if you can.
diana
-----Original Message-----
From: Peter Kjellerstedt
To: 'Guy Harris'; Cameron Kerr
Cc: cody; Ethereal-users@xxxxxxxxxxxx
Sent: 5/17/2001 12:12 AM
Subject: RE: [Ethereal-users] Run as root not as any other user
> -----Original Message-----
> From: Guy Harris [mailto:guy@xxxxxxxxxx]
> Sent: Wednesday, May 16, 2001 21:05
> To: Cameron Kerr
> Cc: cody; Ethereal-users@xxxxxxxxxxxx
> Subject: Re: [Ethereal-users] Run as root not as any other user
>
> > Set ethereal to be setuid
> >
> > chmod +s `which ethereal`
> >
> > Note that this could be a security risk.
>
> Yes - see
>
> http://www.gtk.org/setuid.html
>
> It also may not work at all, depending on whether Mandrake
> 8.0 has GTK+
> 1.2.9 or later, as the GTK+ folk have, in 1.2.9, changed GTK+ so that
> GTK+ programs will simply refuse to run at all if they're set-UID.
Two other solutions to this are sudo and op.
//Peter