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?

1 Answer 1

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.

2
  • Even I will not provide any permission to dummyuser1,such as ----r----- 1 dummyuser apache 1757 Jun 3 2018 index.php, waste a dummy group for this dummyuser? Commented Jan 25, 2019 at 3:26
  • 1
    It is not a waste. It is a necessity. Commented Jan 25, 2019 at 3:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.