You are not logged in.

#1 2010-07-15 17:01:01

action_owl
Member
From: WWW, The Internet 127.0.0.1
Registered: 2009-08-15
Posts: 73

[SOLVED] VSFTP (Very Secure FTP) Permissions Issue

When I upload a file to my ftp directory the permissions are set to:

--w-rw-rw-

and I cannot use RETR (via fileZilla) to downlaod the files

if I navigate to the folder (via SSH) and change permissions of that directory with:

chmod -R u+r http

I can RETR the file,and pemissions are set to:

 -rw-rw-rw-

The issue is that I must do this for every/any new file that I upload via FTP

If I create a file as a user (via SSH) the permissions are properly set and I have no issues with RETR the problem only occurs with files newly added via FTP

/etc/vsftpd.conf:

listen=YES
local_enable=YES
write_enable=YES
local_umask=776
dirmessage_enable=YES
xferlog_enable=YES
ls_recurse_enable=YES

Any ideas?

Last edited by action_owl (2010-07-19 12:04:41)

Offline

#2 2010-07-15 18:12:49

patlkli
Member
From: Landshut, Germany
Registered: 2010-07-11
Posts: 10
Website

Re: [SOLVED] VSFTP (Very Secure FTP) Permissions Issue

[Edit]Ok, forget my previous post. Of course we talk about umasks, not simple permissions.

So if you don't want any permission restrictions you'd need 0000. Of course that would be very insecure, so setting it to 0022 would be probably better to get rwx-r-x-r-x (755) files.[/Edit]

Last edited by patlkli (2010-07-15 18:37:48)

Offline

#3 2010-07-19 12:04:30

action_owl
Member
From: WWW, The Internet 127.0.0.1
Registered: 2009-08-15
Posts: 73

Re: [SOLVED] VSFTP (Very Secure FTP) Permissions Issue

Thanks patlkli,

Setting the umask to 0022 solved the issue.

Offline

Board footer

Powered by FluxBB