suid root - bash script

suid root - bash script

Yedidyah Bar-David linux-il at didi.bardavid.org
Thu Apr 23 09:01:09 IDT 2009


On Thu, Apr 23, 2009 at 08:56:45AM +0300, Erez D wrote:
> hi
> 
> i have a bush script i want to be run with root permisions, no matter which
> user executes it.
> 
> if it was a binary, i would only need set it suid root.
> 
> but as it is a bash script, suid-ing it doesn't do anything, and suid-ing
> /bin/bash itself will make all scripts run suid root, which is surly not
> what i want.
> 
> 
> there must be a solution for that.

'sudo' is what you want.
-- 
Didi




More information about the Linux-il mailing list