I'd like to know how to change my effective uid
mike628@NASBD122F:/etc$ id -G 1000 0 121
I belong to these groups, but I cant do anything as root, when things are owned by root:root
and can someone explain this clearly?
Thanks
I'd like to know how to change my effective uid
mike628@NASBD122F:/etc$ id -G 1000 0 121
I belong to these groups, but I cant do anything as root, when things are owned by root:root
and can someone explain this clearly?
Thanks
Belonging to group root
isn't equal to being root
user because User ID (UID) and Group ID (GID) are different things and for most (all?) privileged activities you need to have effective UID == 0 and having GID == 0 is not enough for that.
To switch your effective user your need to use su
or sudo
commands.