These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for umask set to 0022 not 002 for user on the new forum.
Hi, we have a user in Webmin -> Edit Users that is not the main user. We want to use it for SFTP and we are using User Private Groups. It is getting its umask set to 0022, not 002.
Im /etc/profiles we have
UID -gt 199 ] && [ "/usr/bin/id -gn
" = "/usr/bin/id -un
" ]; then
umask 002
else
umask 022
fi
And in the user
-sh-4.2$ /usr/bin/id -gn = tvppclientarea
-sh-4.2$ /usr/bin/id -un = admin@tvppclientarea.uk
Which is why it is 0022.
What is the proper way of fixing this without breaking stuff?