Umask for ftp user


#1

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 002but it doesn’t work


#2

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


#3

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 :slight_smile:


#4

Add the umask to .bashrc and reconnect using SFTP.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost