umask for ftp user

umask for ftp user

Posted by: adamuss
Posted on: 2009-02-12 04:03:00

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


Re: umask for ftp user

Posted by: sdayman
Posted on: 2009-02-12 07:15:00

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

Re: umask for ftp user

Posted by: adamuss
Posted on: 2009-02-12 08:34:00

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


Re: umask for ftp user

Posted by: sXi
Posted on: 2009-02-12 09:02:00

Add the umask to .bashrc and reconnect using SFTP.




How To Install PHP.INI / ionCube on DreamHost

Tags: bashrchome directory