Permissions wrong on FTP file upload
I'm working with a new system operator who is setting up a new Linux server for me to host a website. He's new in this role -- and I don't know much either. Here's the problem I can't solve:
When I FTP an HTML file to the designated directory, I can't display it in my browser due to an "403 Access Forbidden - You don't have permission to access the requested object. It is either read-protected or not readable by the server" error message. Looking at the permissions of the file show that it's "640", meaning that it is not readable for everyone, only the user and group but not world. I can modify the permission to 644 which solves the problem. But this would be a PAIN for EVERY file I transfer. My questions are, how can I avoid having to make this change for EVERY file? How does Linux assign the permission to an uploaded file? The directory is /svr/www/htdocs/ and it looks like htdocs permission is set for 775 -- wouldn't it default to this?? Thanks. PS -- it says Apache/2.0.48 (Linux/SuSE) at the bottom of the browser error message page -- does this help? |
Hi.
There should be an option in your ftp server's configuration to chmod to a particular value any uploaded files. Depends which ftp server you're using. Dave |
Forgive me for being a newbie, but how do you configure the ftp server?
|
Depends on which ftp server you're using. If it's RedHat you're on, then the server will probably be 'vsftpd'. The configuration for that server is in /etc/vsftp/vsftp.conf
Have a look at what processes are running, and look for something with ftp and d in the process name. Once you know what the name of the server program is, try 'man <name_of_program>' to see the manual page. That should tell you what to do. Dave |
All times are GMT -5. The time now is 10:21 PM. |