File created by application server on mounted drive is not writeable
Hi all,
I have a web application(java 5, mysql server) installed on Tomcat on Red Hat 5. Part of the functionality is to allow the upload of files to a windows share. I have mounted the share using the following command. mount -t cifs //iedev196/sharedDocs -o username=xxx,password=xxxxxx,file_mode=0777,dir_mode=0777 /mnt/shareddocs Any file I create here from the terminal gets full write permissions. "-rwxrwxrwx" The problem is that when the application server creates the file it gets created with the following. "-rw-r--r--" How can I get files created from the server to be "-rwxrwxrwx" Regards Darran |
Solved this.
The jvm process was what created the file. This was running as root user. The tomcat server was running as tomcatuser When i ran tomcat as root I could overwrite the originial file. Darran |
All times are GMT -5. The time now is 09:26 PM. |