public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Allow non root users to edit files owned by root?
  @ 2011-12-20 15:13 99% ` Michael Mol
  0 siblings, 0 replies; 1+ results
From: Michael Mol @ 2011-12-20 15:13 UTC (permalink / raw
  To: gentoo-user

On Tue, Dec 20, 2011 at 10:04 AM, Tanstaafl <tanstaafl@libertytrek.org> wrote:
> Hi all,
>
> I'm guessing this is a sudo question, but I'm unfamiliar with the nuances of
> sudo (never had to use it before).
>
> I have a new hosted VM server that I want to allow a user to be able to edit
> files owned by root, but without giving them the root password.
>
> I already did:
>
> /usr/sbin/visudo
>
> and added the following line:
>
> %sudoroot       ALL=(ALL) ALL
>
> and made sure the user is in this group, but they still get an access denied
> error when trying to mv or cp files that are owned bu root.
>
> What is the best way to do this? I'd really prefer to not give them the root
> password so they can su -...

The sudo command allows commands to be executed *as though they were root*.

'sudo su -' would work. So would 'sudo mv src dst'.

So, incidentally, would 'sudo passwd root'...

-- 
:wq



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-12-20 15:04     [gentoo-user] Allow non root users to edit files owned by root? Tanstaafl
2011-12-20 15:13 99% ` Michael Mol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox