On Thu, 8 Jun 2000, Don Harrop wrote:
> If I'm logged in as root can I run a program as another user without having
> to su to that user?
If it's setuid, but we don't wanna go there ;-).
su username -c "command"
Also look at sudo. Great support for doing stuff as others. It also makes
it mostly safe to allow normal users to switch users for tasks and to dole
out privelidges to do stuff normally reserved for root...
ciao,
der.hans
--
#
der.hans@LuftHans.com home.pages.de/~lufthans/
www.OpNIX.com
# I've got a photographic memory,
# but I'm lousy photographer. - der.hans