Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 13:33:26 -0500
From:      "Robert Myers" <ccrider@whiterose.net>
To:        <gerti-freebsdq@bitart.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Starting process as different user via rc
Message-ID:  <000001c07c28$2e1925f0$0201a8c0@ccrider2k>
In-Reply-To: <20010111082639.15646.qmail@camelot.bitart.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> Is there a way (eg a small utility or some such) that would allow a  
> process/script to be started from rc using a different UID than root?
> SUID would be a poor solution in the case I have in mind.
> 
su -c 'program name and options' <user>

PostgreSQL uses this to startup, it is in ports, and does that via the
/usr/local/etc/rc.d/pgsql.sh shell script.

I would guess what you are doing is via something you installed via the 
ports tree?

Robert Myers
Systems Administrator
http://whiterose.net
(717)439-1478
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001c07c28$2e1925f0$0201a8c0>