Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
nana@hibiki:~$ sudo id
uid=0(root) gid=0(root) groups=0(root)
nana@hibiki:~$ sudo -u '#-1' id
uid=0(root) gid=1000(nana) groups=1000(nana)
nana@hibiki:~$ id
uid=1000(nana) gid=1000(nana) groups=1000(nana),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(lxd),114(netdev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment