Prev | Current Page 340 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

To allow users in the
wheel group to have that privilege without using a password, uncomment the following
line instead:
%wheel ALL=(ALL) NOPASSWD: ALL
3. Save the changes to the /etc/sudoers file (in vi, press Esc, and then type ZZ).
4. Still as root user, open the /etc/group file in any text editor and add to the wheel line
any users you want to have root privilege. For example, if you were to add the users mary
and jake to the wheel group, the line would appear as follows:
wheel:x:10:root,mary,jake
Now users mary and jake can run the sudo command to run commands, or parts of commands,
that are normally restricted to the root user. The following is an example of a session by the user
jake after he has been assigned sudo privileges:
[jake]$ sudo umount /mnt/win
We trust you have received the usual lecture
from the local System Administrator. It usually
boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
Password: *********
TIP
NOTE
147
Learning Basic Administration 4
[jake]$ umount /mnt/win
mount: only root can mount /dev/sda1 on /mnt/win
[jake]$ sudo umount /mnt/win
[jake]$
In this session, the user jake runs the sudo command to unmount the /mnt/win file system
(using the umount command). He is given a warning and asked to provide his password (this is
jake??™s password, not the root password).


Pages:
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352