Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 11:02:45 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        Gerd Knops <gerti@bitart.com>
Cc:        questions@freebsd.org
Subject:   Re: Starting process as different user via rc
Message-ID:  <14941.59189.861045.281196@guru.mired.org>
In-Reply-To: <130130195@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Gerd Knops <gerti@bitart.com> types:
> 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.

Use the "su" command in the script that's going to be run by
root. Specify the command to be run with the "-c" option. Check the
man page for more information.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14941.59189.861045.281196>