1

Per this question,I decide to create dummy user to be the owner of website files.

Centos 7 offer default group ID 100 when I run useradd -u 508 -M -N -s /sbin/nologin dummyuser1.
I want to provide as little as possible privilege to the dummyuser1,then I don't want dummyuser1 has group.

How to do it?

kittygirl
  • 855
  • 4
  • 10
  • 29

1 Answers1

2

Remove the -N option. You need to create a private user group exclusively for this user.

All users must have a group. If you don't want the user to be in any other groups, then the user should be in its own group. By default a group with the same name as the user is created, and that group has the same name as the user.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940