[PATCH] su: support numeric UIDs with a -n flag

Michael Tokarev mjt at tls.msk.ru
Tue May 10 13:53:14 UTC 2022


10.05.2022 16:30, Ben Fuller wrote:
> Signed-off-by: Ben Fuller <ben at bvnf.space>
> ---
> Hi,
> 
> I want to be able to use UIDs rather than usernames in order to handle
> cases where some POSIX tools truncate usernames at 8 characters. This
> patch adds a `-n` flag to su, which causes it to interpret the given
> USER as a numeric UID rather than a username.

Do you really want su there? Maybe setpriv will better suit your needs?

Thanks,

/mjt


More information about the busybox mailing list