a user name, and it will include all theusers. Use the expression ALLwhere youwould use a host name, and it will interpret itto mean all the hosts it knows about. Instead of using ALL, you can substitute yourown User_Aliasinto the command and limitthe users that can mount and unmount CDs. After you set up users by following the steps in thissection, the users need to add sudoto the front ofthe mountand umountcommands when entering themto use their sudo privileges. Including the NOPASSWDflag exempts your users fromhaving to enter their sudo passwords. Passwordsoffer an extra line of security, but for some things(such as mounting a CD), your users will thank youfor not requiring a password. Managing access to dangerous commands with command aliasesUse command aliases to easily manage privileges fordangerous commands. When a user needs to use adangerous command, you can ration the accessinstead of giving out the superuser password andunlimited access to allcommands. Here are somecommands you might consider controlling with sudo: su rm mkfs kill killall partedOne handy command that other users wouldfind helpful, but that normally requires super- user privileges, is rpm. If you read Techniques 17and 18, you already know how handy rpmiswhen it comes to installing and updating soft- ware. And with sudo aliases, you can share thetool without sharing the superuser password. privileges of dozens of users, aliases can really helpspeed things up. Simplifying group managment with a Host_AliasUse the Host_Aliasto make management of groupsof computers easier. To add a Host_AliasnamedFRANCEconsisting of bastille, versaille, and louvre, add the following line to the sudo configuration file: Host_Alias SERVERS = bastille, versaille, louvreYou can also specify computers by IP addresses: Host_Alias SERVERS = 192.168.0.1,192.168.0.36, 192.168.0.22You can use a Host_Aliasin combination with aUser_Aliasto assign the user group privilegedaccess to a group of computers without giving outthe superuser password. Mounting and unmounting CDs without thesuperuser passwordYou might want to allow users to mount and unmountCDs without becoming the superuser. If you don twant to expose the privilege on allyour computers, create a Host_Aliasthat includes the computers thatthe users will access. To do so, follow these steps: 1.Add the Host_Aliasto the Host Alias Specifica- tion section of the sudoersfile: Host_Alias CDROMHOSTS = 192.168.0.1,192.168.0.28, 192.168.0.218 2.Add a line in the User Privilege Specificationsection of the sudoersfile that gives the privi- leges to everyone: ALL CDROMHOSTS = NOPASSWD: /sbin/umount/dev/cdrom, /sbin/mount /dev/cdromALLis a built-in alias that matches all items ofthat particular kind (all users, all hosts, and soon). Use the expression ALLwhere you would39_
Check Tomcat Web Hosting services for best quality webspace to host your web application.