sudo-rs
sudo-rs copied to clipboard
Hostname can be more than just a name
Host ::= '!'* host name |
'!'* ip_addr |
'!'* network(/netmask)? |
'!'* +netgroup |
'!'* Host_Alias
Leaving netgroups aside for a moment, should we support ip_addr, and network(/netmask)? Right now I believe we just match on host names as names (and Host_Alias obviously)
Interestingly, original sudo doesn't seem to allow ip addresses as usernames:
/etc/sudoers:63:1: syntax error
196.171.231.23 ALL=() PASSWD: /bin/whoami
^~~~~~~~~~~~~~