Re: Restart postgres in php as nobody - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Restart postgres in php as nobody
Date
Msg-id 20020108093226.A15631@svana.org
Whole thread Raw
In response to Restart postgres in php as nobody  (Linh Luong <linh.luong@computalog.com>)
List pgsql-general
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@svana.org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: Question regarding strings . . .
Next
From: Dave Trombley
Date:
Subject: JDO implementation?