On 10 May 2022 16:06:35 CEST, Michael Tokarev wrote:
>10.05.2022 16:53, Michael Tokarev wrote:
>..
>> Do you really want su there? Maybe setpriv will better suit your needs?
>
>Grrr, and setpriv in busybox does not support user/group settings at all... ;)
Then adding support for setting user and
Read the setpriv post from before, is adding that not more benifical.
Just quick tested util-linux version.
It allows privdropping
udhcpd - net_raw
udhcpc - net_raw,net_admin
udhcpc6 - net_raw,net_admin
ntpd - sys_time
telnetd - setuid,setgid
ftpd - setuid,setgid,(sys_chroot someone posted the ho
On 10 May 2022 17:12:31 CEST, Laurent Bercot wrote:
> For non-interactive applications of su with numeric uids, may I suggest
>https://skarnet.org/software/s6/s6-applyuidgid.html ?
Or simply write your own trivial "execas".
Maybe something like
http://lists.busybox.net/pipermail/busybox/attachm
You're right. I am a part of a community distro which uses busybox by
default, and we need something to be able to change privileges to an
arbitrary user, but it is not portable to expect a tool to print all of
a username longer than 8 characters. Using the UID is more reliable.
There is no standa
On Tue, May 10, 2022 at 05:06:35PM +0300, Michael Tokarev wrote:
> 10.05.2022 16:53, Michael Tokarev wrote:
> ..
> > Do you really want su there? Maybe setpriv will better suit your needs?
>
> Grrr, and setpriv in busybox does not support user/group settings at all... ;)
Ah, that's why I didn't n
10.05.2022 16:53, Michael Tokarev wrote:
..
Do you really want su there? Maybe setpriv will better suit your needs?
Grrr, and setpriv in busybox does not support user/group settings at all... ;)
Why I asked: it is uncommon for su to accept numeric UIDs, - be it busybox
or anything else. Also,
10.05.2022 16:30, Ben Fuller wrote:
Signed-off-by: Ben Fuller
---
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 numer