proftpd (and other ftp servers), gftp and umask not working as expected - SOLVED



nasty one this - being put up as help for others.

in proftpd there is a umask setting which sets the permissions for a file
when it has been uploaded via FTP - i.e. these are the permissions the file
has on the server after it has been uploaded.

gftp - the gnu FTP client has an option called 'preserve file permissions' -
this has the effect of overriding the permissions which have been set!

i think it uses the FTP commands to do this.

(to me gftp should have this off by default so that it matches the behaviour
of other ftp clients).


this means that the umask setting in proftpd does not seem to work - when it
is from another ftp client.


HTH


PS also, if you overwrite a file the original permissions are kept.
.



Relevant Pages

  • ftp server problem solved
    ... permissions. ... Aparently the problem I was having was just with Vsftpd. ... and 750 and proftpd will list the directories for the anonymous user. ... else who would like to use this configuration but has had problems getting vsftpd to use it. ...
    (RedHat)
  • Re: about seting file permission by default
    ... There miight be a umask entry in your /etc/profile. ... default the umask setting should be 022. ... Umask will mask away permissions you don't want but will not add permissions. ... there's no need to reboot after a simple change like that. ...
    (comp.os.linux.misc)