LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2010, 04:30 AM   #1
darrankavanagh
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
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

Last edited by darrankavanagh; 09-16-2010 at 06:50 AM.
 
Old 09-16-2010, 06:50 AM   #2
darrankavanagh
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounted drive doesn't show up in /mnt file linux hates me Linux - Networking 1 05-28-2009 05:41 PM
File permissions on mounted FAT drive dp_miller Linux - Newbie 8 11-10-2008 03:54 PM
Cannot browse mounted external drive on FreeBSD server from ubuntu dutchboysais Linux - Networking 0 04-22-2008 06:16 PM
Created partition, mounted it, headache kellinjar Linux - General 6 10-02-2006 10:04 PM
mounting usb pen drive as writeable for other users linuxmandrake Ubuntu 19 03-18-2006 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration