Find the answer to your Linux question:
Results 1 to 2 of 2
I have given 644 file permission to /var/www/html folder All the files have 644 permission. But when i upload a new file from filezilla with ssh connection, the new file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66

    File Permission


    I have given 644 file permission to /var/www/html folder
    All the files have 644 permission.

    But when i upload a new file from filezilla with ssh connection, the new file is uploaded as 664 permission.

    How do i make it to be 644?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    899
    You want to change umask of sftp subprocess.
    Setting the umask for SFTP transactions Jeff.Robbins.ws

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •