Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Running a startup task as a user... Date: 21 Jul 1996 08:56:06 GMT Organization: Private BSD site, Dresden Lines: 29 Message-ID: <4ssrb6$5k8@uriah.heep.sax.de> References: <31F17A39.55F@www.play-hookey.com> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Ken Bigelow <kbigelow@www.play-hookey.com> wrote: > The subject line basically says it. My daughter is setting up a MUX on my > auxiliary server, which needs to run under her username, not as root. I > can start the program in /etc/rc.local, but then some essential > initialization files are owned by root:wheel and cannot be accessed they > way they need to be. > > I have a clumsy solution in the form of a shell script which I run from > rc.local: Basically two options: From /etc/rc.local, you can do: su someuser -c 'command to start on behalf of someuser' (rc.local runs with root permissions, thus no password is needed to `su'.) Or, you can perhaps stuff the command as a background command into someuser's .profile or .login script, if this is an option. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)