Mailinglist Archive: opensuse (946 mails)

< Previous Next >
Re: [opensuse] Run command as another user
An alternative...

Keep in mind that if your "command" is a script, shell does not like being run suid and so will likely reset EUID back to calling user ... unless you use sudo which makes sure it does not happen.

You can write a dirt simple c program to call the hard coded script path. That wrapper can be setuid to root.
It's not elegant (and I'd use sudo myself) but it's worth noting.

--
__________________________________________________________________________
Josef Fortier
Systems Administrator
fortier@xxxxxxxxxxxx
Phone: 612-330-1479
__________________________________________________________________________

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups