• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Change umask for SFTP on Plesk to "umask 002"

C

calamus77

Guest
I work for a web design company that has about 100 hosted websites on the server that we maintain in addition to all of our staged clients. We have it setup so that all of the developers can SFTP into the server and work on any website that is hosted with us or currently staged. IMHO, it is much better to give an employee (especially new ones) a username and password that we can remove access for than to give them a list of all of our clients access information, which if something unfortunate happened, we'd have to tell 100 clients to change their passwords (not fun).

However, currently, when a new file is created, it gets the default rw-r--r-- (644) permission. This creates the problem where nobody else can write to the file except the creator...so we have to SSH into the server and do "chmod -R g+w ./*" for a website when someone else needs to work on it...which is problematic for those who aren't comfortable with the command line or don't have root access. So, my question is...is there any way to change the default umask for SFTP to "umask 002"?

the proftpd.conf file is already changed to have a umask 002. So, over standard FTP, we are able to get group-write permissions by default, but I'd like to know if there is a way to do this for SFTP as well, as I feel that my user/pass, which has sudo permissions is a bit more secure with SFTP.

Thanks,

Kevin
 
Back
Top