To run Redis as Unix Socket instead of default TCP. I have to create a group and put all users into that one so they will have permission to read/write.
I usually manually add a user to the group with this command:
sudo usermod -a -G redisusergroup user1
However, I am looking for a better way to auto-add new HestiaCP user to that group. Is it possible?
I tried to create a file /etc/adduser.conf with config
EXTRA_GROUPS="redisusergroup"
ADD_EXTRA_GROUPS=1
But doesn’t work. When I created a new user in HestiaCP, it didn’t add that user to the group.
Keep in mind that the script name must match the package name, not be literally package.sh. For example, if the package name is default, the script should be named default.sh.
But when we add a new user (example) for website example.com. The files will be owned by example:example and we have to put redis user into example group, right?
We need a script to auto-put redis user to the newly created group!?