Re: Restart postgres in php as nobody

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Linh Luong <linh(dot)luong(at)computalog(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restart postgres in php as nobody
Date: 2002-01-07 22:32:26
Message-ID: 20020108093226.A15631@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Trombley 2002-01-08 01:47:07 JDO implementation?
Previous Message Joe Conway 2002-01-07 22:12:11 Re: Question regarding strings . . .