I have two users who are only ftp users I set them up using this guide
I would like to change their default permissions when creating files to 775 instead of 755.
It seems like what I want is umask.
But umask doesn’t have an option to set for another user, only the logged in user (
umask 002) and these users do not have ssh login, only ftp access.
So I need some way of changing the umask of these users as root or sudo.
There appears to be ~.profile but I changed the settings in here and it didn’t make a difference
Can anyone explain where I can change the umask for these users?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!