[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Busybox su leaves EUID unchanged
From:       "Laurent Bercot" <ska-dietlibc () skarnet ! org>
Date:       2023-01-12 17:48:24
Message-ID: em9181ed2e-23e2-4ee9-86f6-f0f639757fb0 () 56b1075f ! com
[Download RAW message or body]


># 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?

  As is often the case, the best debug tool here is strace :)
  What does "strace su userx id" say?

--
  Laurent

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic