You are not logged in.

#1 2024-08-08 09:51:32

Theylanh
Member
Registered: 2024-08-06
Posts: 4

[VSFTPD] Different permissions depending on the ftp client

How is this possible? I have the following configuration:

anonymous_enable=NO
write_enable=YES
local_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
user_config_dir=/etc/vsftpd/vsftpd_user_conf
userlist_deny=NO
allow_writeable_chroot=YES
local_umask=007
file_open_mode=0777

If I understand correctly, with a value 0777 file_open_mode and 007 local_umask I should have 770 permissions. But for example, if I upload a file called CURLFTPFS with that client and the same but with a file called CURL with that other client, I get different permissions:

-rwxrwx---+ 1 theylanh ftp    0 ago  8 11:47 CURL
-rw-r--r--+ 1 theylanh ftp    1 ago  8 11:41 CURLFTPFS

Any ideas?

Offline

#2 2024-08-08 14:06:16

seth
Member
Registered: 2012-09-03
Posts: 60,779

Re: [VSFTPD] Different permissions depending on the ftp client

fom and local_umask fall apart, so assuming this is on a local connection, the approach might be the cause - curlftpfs not posing as local user.

local_enable=NO

and adjust file_open_mode

Offline

Board footer

Powered by FluxBB