On Tue, Dec 20, 2011 at 11:51 AM, Tanstaafl <tansta...@libertytrek.org> wrote: > On 2011-12-20 10:13 AM, Michael Mol <mike...@gmail.com> 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