wOmbad posted <[EMAIL PROTECTED]>, excerpted below,  on Wed, 28 Sep
2005 19:34:22 +0200:

> Does anybody know how to realize the same task as the script - but from 
> a root console?

While Ciaran's correct, this should have been posted to user, here's one
answer: emerge sudo (if necessary), and run sudo -u <username> script.

You may also want to look into configuring sudo so certain users may use
it to run certain commands as root (or other users), with or without
supplying their user password (NOT the root user password, which may not
be the best idea to give to users needing to run only one or two commands
as root).  Groking all the config options can be a bit complex (nothing a
C programmer shouldn't easily master), but sudo can be tremendously
useful, once it's setup correctly, helping one avoid the fat-finger danger
(as well as the security danger) of logging in as root unnecessarily.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-dev@gentoo.org mailing list

Reply via email to