From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 10:50:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 832BD37B401 for ; Sun, 13 Apr 2003 10:50:47 -0700 (PDT) Received: from relay.boerde.de (relay.boerde.de [213.187.87.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBD9A43FAF for ; Sun, 13 Apr 2003 10:50:45 -0700 (PDT) (envelope-from shauwn@relay.boerde.de) Received: by relay.boerde.de (Postfix, from userid 639) id D9D3F139A3; Sun, 13 Apr 2003 19:50:43 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by relay.boerde.de (Postfix) with ESMTP id D4690139A1; Sun, 13 Apr 2003 19:50:43 +0200 (MEST) Date: Sun, 13 Apr 2003 19:50:43 +0200 (MEST) From: Frank Reppin To: =?iso-8859-1?q?adrian=20kok?= In-Reply-To: <20030413172807.35362.qmail@web21205.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@FreeBSD.org Subject: Re: run program not root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Frank.Reppin@boerde.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2003 17:50:47 -0000 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" >