文档详情

sudo详细配置(国外英文资料).doc

发布:2017-06-07约2.16万字共21页下载文档
文本预览下载声明
sudo详细配置(国外英文资料) Sudo configuration Start by writing the sudo configuration file/etc/sudoers; Sudo configuration file is/etc/sudoers, we can use his special visodu editing tool, this tool has the advantage of less accurate when the rules of add, save the exit will prompt error message to us; Once configured, you can use the switch to your authorized user to see which commands can be executed or disabled by sudo-l. Each line in the /etc/sudoers file is a rule, with the # sign in front as the content of the specification, not executing; If the rules are long and one column is not fit, you can use the \ number to renew the line so that a rule can have more than one line. The rules of /etc/sudoers fall into two categories; One is the alias definition, the other is the authorization rule; Alias definitions are not necessary, but authorization rules are required; 3, /etc/sudoers configuration files for alias rules The alias rule definition format is as follows: Alias_Type NAME = item1, item2,... or Alias_Type NAME = item1, item2, item3: NAME = item4, item5 Alias type (Alias_Type) : alias type includes the following four types Host_Alias defines the host alias; User_Alias user alias, the alias member can be the user, user group (the previous one is + %) Runas_Alias is used to define the runas alias, which specifies the destination user, the user that sudo allows to switch to; Cmnd_Alias defines the command alias; NAME is an alias, the naming NMAE is contains uppercase letters, underscores, and Numbers, but must begin with a capital letter, such as SYNADM, SYN_ADM or SYNAD0 is legal, sYNAMDA or 1 synad is illegal; Item according to the Chinese translation is the project where we can be translated into member, if there are multiple members an alias, members and between members, through the half Angle, separated; Members must be valid and present. What works? For example, the host name, which allows you to view the users host name (or IP address) by w, if youre just a local m
显示全部
相似文档