Date: Sun, 13 Apr 2003 19:50:43 +0200 (MEST) From: Frank Reppin <shauwn@relay.boerde.de> To: =?iso-8859-1?q?adrian=20kok?= <adriankok2000@yahoo.com.hk> Cc: questions@FreeBSD.org Subject: Re: run program not root Message-ID: <Pine.LNX.4.44.0304131949160.19504-100000@relay.boerde.de> In-Reply-To: <20030413172807.35362.qmail@web21205.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Apr 2003, [iso-8859-1] adrian kok wrote: Hi, > how do I make script to run program by another user? > do sth like: #!/bin/sh su - jabberd -c '/usr/local/jabber/jabber-1.4.2/jabberd/jabberd -c /usr/local/jabber/jabber-1.4.2/jabber.xml' best regards, Frank Reppin > eg: > > #!/bin/sh > su - jabberd > /usr/local/jabber/jabber-1.4.2/jabberd/jabberd -c > /usr/local/jabber/jabber-1.4.2/jabber.xml > > Thank you > > _______________________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0304131949160.19504-100000>