Default umask for ftp user is 022 (files created via ftp client has permissions 644). Is it possible to change it to 002?
In .bash_profile and .bashrc in ftp user home directory I have:
umask 002
but it doesn’t work
Default umask for ftp user is 022 (files created via ftp client has permissions 644). Is it possible to change it to 002?
In .bash_profile and .bashrc in ftp user home directory I have:
umask 002
but it doesn’t work
the umask command you used only applies to what you do in the shell. My FTP client, Transmit, has an option to set permissions upon upload.
-Scott
My ftp server probably does not support umask command:
[thing]$ ftp p***a.pl
Connected to p***a.pl.
220 DreamHost FTP Server
Name (p***a.pl:adamuss): ****
331 Password required for ****.
Password:
230 User *** logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> site help
214-The following SITE commands are recognized (* =>'s unimplemented).
HELP
CHGRP
CHMOD
214 Direct comments to root@thing.dreamhost.com.
ftp> site umask
500 'SITE UMASK' not understood
ftp> bye
221 Goodbye.
[thing]$
Any other ideas? I suppose I can’t modify /etc/proftpd/proftpd.conf