How do I change default file permissions for files uploaded in Linux and Solaris environments?
Posted by Van Glass on 02 October 2007 10:35 AM
Files uploaded to the server inherit the default permissions of the OS user that is running the JSCAPE MFT Server administrative service. The default permissions for uploaded files may be set using the OS "umask" command. The umask command determines what permissions will be taken away from files and or directories created using the JSCAPE MFT Server service. |
When issuing the umask command you must provide a 3 digit numeric value to determine what permissions to take away. For example, if the default file permissions for files created by user "jsmith" are 666, then adding a umask value of 022 would change the default permissions for files created by this service to 644
666 - 022 = 644 (read+write, read, read)
To ensure that the umask command is applied to the JSCAPE MFT Server service you will need to add this umask command to the beginning of the JSCAPE MFT Server administrative service startup script. This script is located in a file named "server" in the installation directory of JSCAPE MFT Server.
For example, to change default permissions to 644, you would add the following command to the beginning of the "server" startup script file. For these changes to take effect it will be necessary to restart your JSCAPE MFT Server administrative service.