Bug 1011

Summary: running sudo with UID only no longer possible
Product: Sudo Reporter: arekm
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: low    
Version: 1.9.8   
Hardware: PC   
OS: Other   

Description arekm 2021-12-02 00:42:28 MST
This was working at some point but doesn't anymore:

$ sudo -u '#1234' id
sudo: unknown user #1234

$ sudo --version
Sudo version 1.9.8p2
Sudoers policy plugin version 1.9.8p2
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.8p2
Sudoers audit plugin version 1.9.8p2
Comment 1 Todd C. Miller 2021-12-02 06:54:26 MST
From the upgrade notes:

    Starting with version 1.8.30, sudo will no longer allow commands
    to be run as a user or group ID that is not in the password or
    group databases by default.  Previously, sudo would always allow
    unknown user or group IDs if the sudoers entry permitted it,
    including via the "ALL" alias.  The old behavior can be restored
    by setting the new "allow_unknown_runas_id" Defaults setting
    in the sudoers file.