View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed Dec 17, 2014 8:44 am Post subject: The use of -r in id command. |
|
|
With the -r switch id should print the real UID/GID, but running id -ru or -rg with su -c prints the EUID/EGID.
So, what the use of this switch? _________________ My blog |
|
Back to top |
|
|
papahuhn l33t
Joined: 06 Sep 2004 Posts: 626
|
Posted: Wed Dec 17, 2014 7:37 pm Post subject: |
|
|
su sets both effective and real UID/GID via setuid(), as it is a suid root binary (man 2 setuid). _________________ Death by snoo-snoo! |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Thu Dec 18, 2014 7:10 am Post subject: |
|
|
Oh, ok,. I didn't know anything like that happened. _________________ My blog |
|
Back to top |
|
|
|