Score:1

How to add nginx configurator group?

nl flag

I want o create a user group that has permissions to create/edit/view nginx configs without sudo permissions, but I heve no idea how.

Creating a normal user group and setting owner:group to same-owner:configurator-group for the nginx configs location, the user can edit and view but creating a file sets the new file owner and group to the users.

Score:0
wf flag

This - provides an overview of managing user groups and file permissions on an Ubuntu system.

Create the user group using the groupadd command:

sudo groupadd configurator

Add the users who should be members of the configurator group using the usermod command:

sudo usermod -a -G configurator [username]

Change the ownership and permissions of the Nginx configuration files to allow the configurator group to read and write to the files:

sudo chown root:configurator /etc/nginx/conf.d/*
sudo chmod 640 /etc/nginx/conf.d/*

you may want to prevent members of the configurator group from creating new files in the /etc/nginx/conf.d directory. To do this, you can set the sticky bit on the directory:

sudo chmod +t /etc/nginx/conf.d
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.