I am using User Private Groups on a CentOS7 server and I can't seem to get things quite working.
Firstly the standard users seen to have a mask of 0022 and I am fairly sure it should be 002 for UPG.
The user has /bin/sh set in its /etc/password and has a uid/gid 1017.
The bit of /etc/profile setting umask is:
UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
umask 002
else
umask 022
fi
/usr/bin/id -gn <> /usr/bin/id -un
But I quess this must be there for a reason. Not sure why this is here/if it is safe to remove.
I am assuming here that proftpd is using the users umask as this seems consistent with what is happening. The new files FTPd to the server are u+rw, g+rw, o+r.
So I think all I need to do is sort out umask for the user?