sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Hostname can be more than just a name

Open squell opened this issue 2 years ago • 2 comments

     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)

squell avatar Apr 18 '23 08:04 squell

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
^~~~~~~~~~~~~~

squell avatar Apr 18 '23 08:04 squell