LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file permission (https://www.linuxquestions.org/questions/linux-newbie-8/file-permission-921647/)

ggalan 01-02-2012 03:09 PM

file permission
 
when i upload files to the server via ftp i get a file permission of 644

does httpd.conf hold the settings for this?

if so how can i change it to 777

is it local_umask=777
??

TobiSGD 01-02-2012 03:15 PM

When you upload files via FTP it is the file-server that sets the permissions of the files. So you have to configure the FTP server to change that.
By the way, the umask is the octal complement to the file permissions. For example, if you want the permissions to be 755 the umask should be 022. In your case it should be 000.

ggalan 01-02-2012 03:23 PM

would that be in the vsftpd.conf?

which line controls this?

TobiSGD 01-02-2012 03:49 PM

I use the the line
Code:

chown_upload_mode=644
in vsftpd.conf to get the permissions I want. In your case you should of course replace 644 with 777.

ggalan 01-02-2012 04:17 PM

does this make sense then?
Code:

chown_upload_mode=777
local_umask=000



All times are GMT -5. The time now is 12:31 AM.