Clarification for output of id command
by kazesyxers from LinuxQuestions.org on (#5RH6A)
Hello people,
I'm trying to understand id command used to display details about users. When i simply typeidi got below result
uid=1000(kaze) gid=1000(kaze) groups=1000(kaze),27(sudo)
But when using command id kaze, i got below output
uid=1000(kaze) gid=1000(kaze) groups=1000(kaze),27(sudo),33(www-data)
Please note that i previously did below command and i a connected as kaze user
sudo usermod -a -G www-data kaze
Can somebody, please explain why i do not have the same result with both id commands, knowing that i am connected with kaze user?
I'm trying to understand id command used to display details about users. When i simply typeidi got below result
uid=1000(kaze) gid=1000(kaze) groups=1000(kaze),27(sudo)
But when using command id kaze, i got below output
uid=1000(kaze) gid=1000(kaze) groups=1000(kaze),27(sudo),33(www-data)
Please note that i previously did below command and i a connected as kaze user
sudo usermod -a -G www-data kaze
Can somebody, please explain why i do not have the same result with both id commands, knowing that i am connected with kaze user?