Date: Mon, 19 Aug 2002 15:52:57 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: MET <met@uberstats.com> Cc: 'freebsd-questions-en' <freebsd-questions@FreeBSD.org> Subject: Re: Run a command as another user Message-ID: <20020819135257.GY389@freepuppy.bellavista.cz> In-Reply-To: <002501c24786$6eff4c90$6901a8c0@SURVIVAL> References: <002501c24786$6eff4c90$6901a8c0@SURVIVAL>
next in thread | previous in thread | raw e-mail | index | archive | help
> From: "MET" <met@uberstats.com>
> To: "'freebsd-questions-en'" <freebsd-questions@FreeBSD.org>
> Subject: Run a command as another user
> Date: Mon, 19 Aug 2002 09:43:40 -0400
>
> If I'm logged in as SU, what do I type to run a command as another user?
>
> ~ Matthew
well, you probably mean you used su(1) to become root. you can use
su again:
# 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
--
FreeBSD 4.6-STABLE
3:47PM up 10 days, 3:42, 21 users, load averages: 0.00, 0.00, 0.00
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?20020819135257.GY389>
