On Mon, Jan 07, 2002 at 11:04:11AM -0700, Linh Luong wrote:
> 2. I have tried using setuid on the file restart_psql.sh but unfortunately
> it doesn't seem to be forcing the execution as root it still show the user as
> nobody when I include whoami in the sh file.
General note: The setuid bit does *not* work on shell scripts, only on
actual programs.
Other people have provided good answers to your question.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.