1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Change umask for SFTP on Plesk to "umask 002"

Discussion in 'Plesk for Linux - 8.x and Older' started by calamus77, Jun 11, 2008.

  1. calamus77

    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.