From e047d29e12d49fa1a3f9b3aa3ac6c88efd13b908 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 13 Aug 1994 21:15:52 +0000 Subject: [PATCH] added network and ip addresses to man page --- sudo.man | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sudo.man b/sudo.man index 3c50dffec..d22598686 100644 --- a/sudo.man +++ b/sudo.man @@ -49,7 +49,7 @@ host alias section format: Host_Alias ::= a keyword. HOSTALIAS ::= an upper-case alias name. - host-list ::= a comma separated list of hosts. + host-list ::= a comma separated list of hosts/addresses/networks. command alias section format: Cmnd_Alias CMNDALIAS = cmnd-list @@ -72,8 +72,9 @@ Examples # Host alias specification Host_Alias HUB=houdini.rootgroup.com:\\ REMOTE=merlin,kodiakthorn,spirit - Host_Alias MACHINES=kalkan,alpo,milkbones + Host_Alias MACHINES=kalkan,alpo,milkbones,128.138.199.1 Host_Alias SERVERS=houdini,merlin,kodiakthorn,spirit + Host_Alias CSNETS=128.138.243.0,128.138.204.0,128.138.242.0 # Command alias specification Cmnd_Alias LPCS=/usr/etc/lpc,/usr/ucb/lprm @@ -91,11 +92,11 @@ Examples billp ALL=/usr/local/bin/top:MACHINES=SHELLS davehieb merlin=ALL:SERVERS=/etc/halt:\\ kodiakthorn=ALL - steve ALL=/usr/su_commands/ + steve CSNETS=/usr/su_commands/ The above .I sudoers -file specification is composed of 4 host alias specifications, 4 +file specification is composed of 4 host alias specifications, 3 command alias specifications and 8 user specifications. Britt is permitted to execute /etc/halt, /etc/shutdown, /usr/etc/lpc and /usr/ucb/lprm on the REMOTE machines (merlin, kodiakthorn, and @@ -104,7 +105,7 @@ of SHELL commands on any machine. Jill is permitted to execute /etc/shutdown, /bin/rm, and /bin/cat on houdini. Davehieb can execute any command on machines merlin and kodiakthorn and can halt the SERVERS. Steve can run any command located in the directory -/usr/su_commands on all machines. +/usr/su_commands on all machines on the subnets listed in OURNETS. The .I sudoers