2

Execute the two commands, that is, adding current user to tcpdump group, then check the result by querying groups. BUT, groups does not report I'm a member of tcpdump why?

Screenshot from Ubuntu 22.04:

enter image description here

At this time, I checked /etc/group file, it has been added.

tcpdump:x:117:chj

In order to see tcpdump listed in groups command, I have to completely log out my desktop session then re-login.

How come it has to be so cumbersome? Am I missing something?

3

1 Answer 1

3

Try groups $USER to see the changes. Now, you are listing the groups for the current process, which may differ if the groups database has changed.

1
  • Thanks. I realize that man groups refers to this behavior, although something vaguely.
    – Jimm Chen
    Jul 3, 2022 at 11:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .