Running prog's as other users

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: der.hansPLUGd@LuftHans.com
日付:  
題目: Running prog's as other users
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
--
# home.pages.de/~lufthans/ www.OpNIX.com
# I've got a photographic memory,
# but I'm lousy photographer. - der.hans