1 |
wOmbad posted <433AD41E.2070209@×××.net>, excerpted below, on Wed, 28 Sep |
2 |
2005 19:34:22 +0200: |
3 |
|
4 |
> Does anybody know how to realize the same task as the script - but from |
5 |
> a root console? |
6 |
|
7 |
While Ciaran's correct, this should have been posted to user, here's one |
8 |
answer: emerge sudo (if necessary), and run sudo -u <username> script. |
9 |
|
10 |
You may also want to look into configuring sudo so certain users may use |
11 |
it to run certain commands as root (or other users), with or without |
12 |
supplying their user password (NOT the root user password, which may not |
13 |
be the best idea to give to users needing to run only one or two commands |
14 |
as root). Groking all the config options can be a bit complex (nothing a |
15 |
C programmer shouldn't easily master), but sudo can be tremendously |
16 |
useful, once it's setup correctly, helping one avoid the fat-finger danger |
17 |
(as well as the security danger) of logging in as root unnecessarily. |
18 |
|
19 |
-- |
20 |
Duncan - List replies preferred. No HTML msgs. |
21 |
"Every nonfree program has a lord, a master -- |
22 |
and if you use the program, he is your master." Richard Stallman in |
23 |
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html |
24 |
|
25 |
|
26 |
-- |
27 |
gentoo-dev@g.o mailing list |