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 <germanaolivei...@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<debian-women-requ...@lists.debian.org> > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/**524ae6b6.6040...@gmail.com<http://lists.debian.org/524ae6b6.6040...@gmail.com> > >