Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Allow non root users to edit files owned by root?
Date: Tue, 20 Dec 2011 15:16:51
Message-Id: CA+czFiBbUJdk5W-fCGNecektdA+mn_jzb46eXnUk=5gjUD=NmQ@mail.gmail.com
In Reply to: [gentoo-user] Allow non root users to edit files owned by root? by Tanstaafl
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

Replies

Subject Author
Re: [gentoo-user] Allow non root users to edit files owned by root? Florian Philipp <lists@×××××××××××.net>
Re: [gentoo-user] Allow non root users to edit files owned by root? Tanstaafl <tanstaafl@×××××××××××.org>