1 |
On Tue, Dec 20, 2011 at 10:04 AM, Tanstaafl <tanstaafl@×××××××××××.org> wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> I'm guessing this is a sudo question, but I'm unfamiliar with the nuances of |
5 |
> sudo (never had to use it before). |
6 |
> |
7 |
> I have a new hosted VM server that I want to allow a user to be able to edit |
8 |
> files owned by root, but without giving them the root password. |
9 |
> |
10 |
> I already did: |
11 |
> |
12 |
> /usr/sbin/visudo |
13 |
> |
14 |
> and added the following line: |
15 |
> |
16 |
> %sudoroot ALL=(ALL) ALL |
17 |
> |
18 |
> and made sure the user is in this group, but they still get an access denied |
19 |
> error when trying to mv or cp files that are owned bu root. |
20 |
> |
21 |
> What is the best way to do this? I'd really prefer to not give them the root |
22 |
> password so they can su -... |
23 |
|
24 |
The sudo command allows commands to be executed *as though they were root*. |
25 |
|
26 |
'sudo su -' would work. So would 'sudo mv src dst'. |
27 |
|
28 |
So, incidentally, would 'sudo passwd root'... |
29 |
|
30 |
-- |
31 |
:wq |