Date: Thu, 7 May 1998 12:55:53 -0400 (EDT) From: CyberPeasant <djv@bedford.net> To: Kevin_Rooney@sw.cc.va.us (Kevin Rooney) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IRCU2 and rc.local Message-ID: <199805071655.MAA19700@castor.loco.net> In-Reply-To: <v03102800b17750771f99@[164.106.194.60]> from Kevin Rooney at "May 7, 98 07:52:26 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Rooney wrote:
> It seems the IRCU2 server will only start with setuid someone other than
> root. How do I write rc.local to automatically change the user who starts
> it at startup time?
Two ways:
su username -c "command to be executed by shell"
or
make ircu2 suid to the user in question. As root, do:
chown username.usergroup name-of-executable
chmod u+s name-of-executable.
The latter method may break things, and introduce unanticipated problems,
especially relating to security. Try the first method, and see how it works.
Dave
--
<----. mail-to: djv@bedford.net
<----|===================================
<----' Zber Qnrzbaf, Srjre Qrivyf!
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?199805071655.MAA19700>
