Busybox su leaves EUID unchanged
erkska dev
erkska.dev at gmail.com
Thu Jan 12 13:26:21 UTC 2023
Hello.
Environment: aarch64 embedded device, Linux 5.4.70, Busybox v1.33.0
# cat /etc/passwd
root:!:0:0::/:/bin/sh
userx:!:203:203::/:/bin/sh
# id
uid=0(root) gid=0(root)
# su userx
# id
uid=203(userx) gid=203(userx) euid=0(root)
Is this expected behaviour? From source I can see it does setuid() which
should also modify euid. If not then what could be the issue?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230112/8e97316d/attachment-0001.html>
More information about the busybox
mailing list