robev Posted January 22, 2017 Posted January 22, 2017 My site is on Tommy. I'm using filezilla to upload files, and their default file permissions is 664. As a result I'm getting a 500 error that my files are writeable by group. How do i make files uploaded have permission level 644? I've read it's a server thing...
Krydos Posted January 22, 2017 Posted January 22, 2017 You can change permissions of files by right clicking the file on the server and going to File permissions. You can change the permissions of a directory the same way, but it also has an option to recursively change all the permissions within the directory too. Do your files upload by default in 644 now?
robev Posted January 25, 2017 Author Posted January 25, 2017 I realize I can change it but I don't want to for every file I upload. I just added a new file and it was 664, not 644.
Krydos Posted January 25, 2017 Posted January 25, 2017 Yeah, I had to remove the permission mask because no one could connect to SFTP anymore with it in place. Which would you rather have? Access to SFTP at all or have to right click and change all permissions once?
Byron Posted January 25, 2017 Posted January 25, 2017 Using regular FTP will keep the file permissions 644.
robev Posted January 25, 2017 Author Posted January 25, 2017 Why does a permission mask prevent connecting? That's weird
Krydos Posted January 25, 2017 Posted January 25, 2017 Don't know exactly. I changed it and everything worked, and files uploaded at 644 correctly. Then I updated some software on Tommy and I think openssh was updated, and then SFTP stopped working for anyone without shell access, but as soon as I reverted my permissions mask edit in the configuration file everyone without shell access can connect again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now