From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rd3AB-0002dP-H0 for garchives@archives.gentoo.org; Tue, 20 Dec 2011 17:07:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA40A21C229; Tue, 20 Dec 2011 17:07:30 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A80921C224 for ; Tue, 20 Dec 2011 17:06:17 +0000 (UTC) Received: by eaai1 with SMTP id i1so798912eaa.40 for ; Tue, 20 Dec 2011 09:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0TLxVXi/kn5+w4phEsucIXqEPxF+3xELiQ+FvhgDUNw=; b=CJMQvWKHHJDQo9aeOYm98XjHCVZRxukVCyxWU/+G/ErzXtBzKSW0ccEM/Ri2qmLFxT dhgtbJZrF1UDkRsMEQrTdRBS2RSWH6j9cghlo+AKExhl6Ghg6PyAizdTxRG0y1PyHtNi lpvcP0Nhx93qLPVzeCy9nkfOFKBqKqF47JMl4= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.152.140 with SMTP id g12mr1070149bkw.98.1324400776478; Tue, 20 Dec 2011 09:06:16 -0800 (PST) Received: by 10.204.226.72 with HTTP; Tue, 20 Dec 2011 09:06:16 -0800 (PST) In-Reply-To: <4EF0BCFF.8090301@libertytrek.org> References: <4EF0A415.8020007@libertytrek.org> <4EF0BCFF.8090301@libertytrek.org> Date: Tue, 20 Dec 2011 12:06:16 -0500 Message-ID: Subject: Re: [gentoo-user] Allow non root users to edit files owned by root? From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 2dc4c3e2-2ffc-4378-87d1-1d534092e121 X-Archives-Hash: f81f161fce37cffdba4b9c2eb2e17659 On Tue, Dec 20, 2011 at 11:51 AM, Tanstaafl wrote: > On 2011-12-20 10:13 AM, Michael Mol wrote: >> >> So, incidentally, would 'sudo passwd root'... > > > Ouch... any way to avoid that? > > I guess the best way would be to simply give them access to the commands > they need... > > I'll look into that... The best way would probably be to work with UNIX privileges or ACLs. You've got a file you want people other than root to be able to edit. groupadd $SPECIALGROUP usermod -a -G $SPECIALGROUP $THEIRUSERNAME chown :$SPECIALGROUP $FILENAME chmod g+w $FILENAME (You might want to chmod g-x $FILENAME, too, just for safety's sake.) -- :wq