Bugzilla – Bug 1011
running sudo with UID only no longer possible
Last modified: 2021-12-02 06:54:26 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
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.