B
B
by_EL2020-12-03 00:35:27
linux
by_EL, 2020-12-03 00:35:27

How to add a user to multiple primary groups on Linux?

And what system file will these added primary (primary) user groups be displayed by me?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-12-03
@by_EL

1. There can be only one Primary group and nothing else
2. It's not a fact that all user groups can be found in files, you never know how pam is configured.
3. And so - in /etc/passwd primary group, in /etc/groups all other groups

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question