145. .sudo

SCR Agent for reading/writing /etc/sudoers

145.1. Authors

  • Bubli <kmachalkova@suse.cz>

145.2. Description

Read returns and Write accepts list of lists of strings, ordered as follows: # ["comment to this rule or alias", username | keyword, hostname | alias name, rule | csv list ] Fore more information about possible keywords, aliases and values consult with the sudoers man pages `man sudoers`.

Access type: read/write

File Name: /usr/share/YaST2/scrconf/sudo.scr

145.3. Usage

Example 89. 

Read(.sudo)
([
  ["#We let root and any user in group wheel run any command on any host as any user.\n", "root", "ALL", "(ALL) ALL"],
  ["", "%wheel", "ALL", "(ALL) ALL"]
  ]
 )
Write(.sudo, [ ["#first rule", "user", "HOST", "rule1"], ["#second rule", "otheruser", "HOST", "rule2"] ])
(true)