PDA

View Full Version : [ubuntu] ftp permissions


Delta62
July 31st, 2009, 01:56 PM
I've recently set up an FTP server onto my ubuntu 9.04 box.

I am able to use FTP normally, but I need some way to change the default permissions of uploaded files.

This is a LAMP testing server, so files are uploaded and need to be accessible immediately. However, when a file is uploaded, it has a permission value of 600, so uploaded webpages cannot be viewed by anyone.

I need to find some way to change the permissions of uploaded files to be 644 by default. Is there a way to do this?

ibutho
July 31st, 2009, 03:04 PM
Which ftp server are you using?

Delta62
July 31st, 2009, 05:06 PM
I am using vsftpd.

ibutho
July 31st, 2009, 05:48 PM
Is your umask for local users set to 022?

Delta62
July 31st, 2009, 06:13 PM
I haven't tried that. Let me take a look at that here...

Delta62
July 31st, 2009, 10:10 PM
That has done it. Thanks so much! :guitar:

ibutho
August 1st, 2009, 11:32 AM
That has done it. Thanks so much! :guitar:

Ok. I'm glad that managed to resolve the problem. :)