How am I a member of groups such as 'floppy', 'audio', and 'scanner'?
I'm puzzled by this behavior of coreutils groups output:
Code:
dave@europa~$ groups dave The two groups I'd expect from the explicit membership in /etc/passwd and /etc/group are users (primary) and wheel (supplementary): Code:
dave@europa~$ grep dave /etc/group Commands such as getent and id tell me things I already know: Code:
dave@europa~$ getent group floppy users wheel Now I'm convinced I'm overlooking a super simple and obvious answer to this. :doh: (As an amusing aside, I've noticed that all examples online carefully avoid this issue entirely.) |
Look in the file /etc/login.defs. There is often a list of groups that the login program adds everyone to.
|
Quote:
Code:
$ grep floppy /etc/login.defs Code:
$ sudo ag floppy /etc | ag cdrom |
All times are GMT -5. The time now is 08:02 PM. |