[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudoers



You can create a script changesudoers.sh like that..

#!bin/bash
chmod 554 /etc/sudoers
cp `echo $1` /etc/
chmod 440 /etc/sudoers

edit newsudoers

run a script..

sudo changesudoers.sh newsudoers





2013/10/1 Germana Oliveira <germanaoliveirab@gmail.com>
Hi!

I am using sudoers file to try to limit the things a user can do with sudo. The sudo is going to be use because this is a lab to tech informatics, so people probably need to know administrative tasks... but i want to avoid they change the root password and edit the sudoers file.

So, i have this in sudoers:

user1  ALL=/usr/bin/*, /usr/sbin/*, /bin/*, /sbin/*, !/usr/bin/passwd root, !/bin/su

How can i void the user1 edit sudoers file??

Thanks!

--
http://g0liv3ir4.wordpress.com
twitter g0liv3ir4
identi.ca goliveira


--
To UNSUBSCRIBE, email to debian-women-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 524AE6B6.6040706@gmail.com" target="_blank">http://lists.debian.org/[🔎] 524AE6B6.6040706@gmail.com



Reply to: