Hi all, I have a Fedora Core 5 server running ProFTP and SSH. Currently, any files uploaded to the server either by FTP or SSH is given a default permission of 644. How can I change this so that the default file permission is 664. Please provide detailed instruction is possible, eg. files to modify, etc... Thanks and hopefully someone can help me.
Thanks falko. How about changing the default permission for those files uploaded via SSH or SFTP, eg. those using softwares like WinSCP, etc.... Any ideas where I set the permission similar FTP, eg. 664. Thanks again.
The reason that I do not wish to set the file permission on the client level is basically I do not know what client my users might be using and it will be a tedious task to tell everyone to configure whatever client program they are using to set it to umask 002. Therefore, it would be ideal if I could set it as default at the server level. I managed to set the default umask using the commandline However, if the server is restarted, it defaulted back to 0022. So, I was wondering where the server gets its default umask value, ie. 0022.
The default is set in /etc/profile. You can change to your likes, but be careful. It also impacts e.g. the creation of directories. It may leave directories more open than you really want .....
User's profile? Hi! I'm an Ubuntu user, so I'm not sure if this works in Fedora too, but there it goes! You can have a .profile file for each user and there you can define custom umask, so it will affect only that user. Hope this helps!!