When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x
How can I do that ???
Just one thing. I'd like to set the '---------x' attribute to the files so that images uploaded to the server can be accessible to the web server but I don't think I can do that with umask...
Does anybody know about that ?
That's right, you won't be to set an execute bit via umask (on a non-directory) unless you modify the code for your ftp server. Files are created with 666 and umask can only stop some or all of those bits. It can't add new bits.
Perhaps you can get the ftp client to issue explicit chmod commands.