Web server iis - /etc/sudoersfile opens. The file contains four commented lines,
Sunday, January 27th, 2008/etc/sudoersfile opens. The file contains four commented lines, acting asplaceholders for alias definitions. 4.Enter the aliases under the appropriate headings. For example, if you re creating a Cmnd_Alias, place it under the comment that says # Cmnd_ Alias specifications. See the next section, Defining the Alias, for more information aboutthe format of an alias. 5.When you re finished adding aliases, save thefile and exit the editor. When you save the file edits, you may get anerror message in the terminal window: Warning: undeclared Host_Alias NAME referenced near line 12>>>sudoers file: syntax error, line11<<< What now? The sudoerserror messages aren t very help- ful. Odds are, you made a typing error, so enteran eto reopen and edit the file and then checkyour entry. sudo is particularly fussy aboutcapitalization; the first letter of the alias typeand the word alias need to be capitalized. Defining the AliasBefore you can add an alias, you need to decide whatthe alias will contain. This takes a bit of thought, butas you think about your users and their roles in theworkplace, some logical divisions of privileges willprobably emerge. Model the sudo aliases against the real-worldroles that your users take on and the real- world privileges that the company structuremight impose. A management hierarchymight translate into a hierarchy of user aliasesand privileges. Here s the basic format of an alias definition: Alias_Type ALIASNAME = member one, membertwoNote that capitalization is important in the sudoersfile. Alias names may contain only uppercase letters, numbers, and underscores (and must begin with a let- ter). The words User_Alias, Runas_Alias, Host_Alias, and Cmnd_Aliasmust all be captalized as shown inthis sentence. Creating a User_AliasTo create a User_Aliasnamed ACCTGconsisting ofFreddie, Franklin, and Georgette, add the followingcode to the /etc/sudoersfile: User_Alias ACCTG = freddie, franklin, georgetteTo create an alias consisting of the members ofanother group but excluding a certain member, youcan define a group as follows: User_Alias MGMT = ACCTG, ! georgetteThe !excludes Georgette from the MGMTgroup. You can use the !to exclude the rights to cer- tain privileges from certain users, but don tconsider that to be absolute security. Wily userscan find their way around a lack of privileges ifthey really want to. Creating a Runas_AliasThe command to create a Runas_Aliasis similar tothe command to create a User_Alias, but you canalso specify members by their user numbers: Runas_Alias OPERATORS = #1, murphy, rachel, bernieA single user can belong to many aliases the user gains the privileges of each group. In a smallcompany, the timesaving benefits might not beimmediately obvious, but if you re managing the39_
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.