I want to set home directory permissions for newly created users to 0750. Instead of having to manually chmod 0750, I found out I could edit this behavior in /etc/adduser.conf:
Now here's a more tricky question. I have to create a series of users without shell access. What I'd usually do is something like this:
# useradd -m -g users -s /bin/false -c "abc" abc
# useradd -m -g users -s /bin/false -c "xyz" xyz
Unfortunately my DIR_MODE=0750 directive is not operative, and these users' home directories get created with default 0755 permissions.
Any idea if there's a secret trick or switch so they're directly created with 0750 permissions?