Article 5RH6A Clarification for output of id command

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?latest?d=yIl2AUoC8zA latest?i=rwrgqY__RnU:LGIzxHukD1c:F7zBnMy latest?i=rwrgqY__RnU:LGIzxHukD1c:V_sGLiP latest?d=qj6IDK7rITs latest?i=rwrgqY__RnU:LGIzxHukD1c:gIN9vFwrwrgqY__RnU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments