You could try using the command
su <unpriveldged user> -c <command you want to run>
Make that your script and you should not have any problems
Darren
Darren Ferguson
On Wed, 9 Jan 2002, Cindy wrote:
>
> Hi, all. I'm trying to figure out how to have postmaster
> automatically restart upon rebooting (on a Sun Solaris system). I
> added a script to the /etc/rc3.d directory, but turns out it has to
> run under non-root privs. It referred to the INSTALL file for further
> info, but I couldn't find this file, and all the documentation I
> looked at discussed starting postmaster on the command line. Any
> suggestions or pointers to where I should look at?
>
> Thanks,
> --Cindy
> --
> ctmoore@uci.edu
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>