Hi, I have an interesting quandry… I need to make it so all files uploaded by local users have the umask 002, and I’ve specificed that in/etc/vsftpd/vsfptd. conf and restarted vsftpd, but it still seems like all files uploaded by local users retain whatever their original permissions were on the remote system
I have vsftpd running on the system ‘server’ (CentOS 5.4)
On the system ‘server’ I have a user named ‘user1’
I’ve enabled local user login, and I’m able to connect to the server as ‘user1’ via FTP. So far so good.
I have a file named ‘file’ on my home system ‘home-client’ and ‘file’ has permissions 744
On ‘server’ i have ‘local_umask=002’ defined (and I’ve restarted vsftpd)
In theory, at this point, I should be able to connect via FTP using the ‘user1’ login, and I should be able to upload ‘file’ to the server, and the file on the server SHOULD have the permissions 775, but instead it still retains the permissions it had on the ‘home-client’ system (ie, 744)
Why is vsftpd ignoring the directive I’ve specified in /etc/vsftpd/vsftpd.conf ??
How can I smack it upside the head and tell it to follow the rules from now on like a good little daemon should?
Any insight would be great.
In case it matters, the FTP client I’m using is gFTP 2.0.19