Does su
always change ruid, euid and suid to the same user id, or just some of them?
I feel all of them, because the process which is executing su
is always run with superuser privileges, and in which case, setuid()
sets all three kinds of user ids to the same value.
Thanks.