From owner-freebsd-questions Mon Aug 19 7:15:16 2002 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 14EB637B405 for ; Mon, 19 Aug 2002 07:15:13 -0700 (PDT) Received: from spin.web.net (spin.web.net [192.139.37.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 897D343E65 for ; Mon, 19 Aug 2002 07:15:12 -0700 (PDT) (envelope-from rob@web.net) Received: by spin.web.net (Postfix, from userid 1000) id 55D4B12E466; Mon, 19 Aug 2002 10:14:52 -0400 (EDT) Date: Mon, 19 Aug 2002 10:14:52 -0400 From: Rob Ellis To: freebsd-questions@FreeBSD.org Subject: Re: Run a command as another user Message-ID: <20020819141452.GB30342@web.ca> Mail-Followup-To: Rob Ellis , freebsd-questions@FreeBSD.org References: <002501c24786$6eff4c90$6901a8c0@SURVIVAL> <20020819135257.GY389@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020819135257.GY389@freepuppy.bellavista.cz> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > # su anotheruser -c program > > btw, the man page (at least on two of my STABLE systems) lies: > the -c switch allows one to specify a command, not login class the -c in 'su username -c command' is an option passed to sh... su [-Kflm] [-c class] [login [args]] it's one of the 'args', a different -c. - rob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message