Re: file permission problem SOLVED

2017-12-19 Thread Chris Cheshire
On Mon, Dec 18, 2017 at 1:11 PM, Chris Cheshire wrote: > Since moving from a yum controlled installation of tomcat and starting > tomcat via jsvc I have a problem with permissions of uploaded files. > > Now all files that are written by tomcat have permissions of 0600, > where they used to be 0644

file permission problem

2017-12-18 Thread Chris Cheshire
Since moving from a yum controlled installation of tomcat and starting tomcat via jsvc I have a problem with permissions of uploaded files. Now all files that are written by tomcat have permissions of 0600, where they used to be 0644. I need the to be group readable, world readable is not necessar

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
My 50user.policy currently shows... grant codeBase "file:/var/lib/tomcat5.5/webapps/DBTest/-" { //permission java.net.SocketPermission "localhost", "resolve"; //permission java.net.SocketPermission "127.0.0.1:3306", "connect"; permission java.security.AllPermission; }; grant c

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread David Smith
So what does your 50user.policy show now? What you posted below grants all permissions to both your webapp and the mysql driver jar file. --David Stephen Pegg wrote: David, I can verify that the 50user.policy file is sufficient for making the catalina.policy. In the Ubuntu install there are

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
David, I can verify that the 50user.policy file is sufficient for making the catalina.policy. In the Ubuntu install there are 5 seperate .policy files that form the catalina.policy file. The catalina.policy file is uneditable as any changes made are overwritten by the 5 seperate files. One update

Re: tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread David Smith
The problem is most definitely in the security manager configuration. I'm not familiar with 50user.policy though -- this must be a Ubuntu thing. Can you verify this is really the security policy config file tomcat is using? The policy settings I see toward the bottom looks good on the suface

tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
I am having a very bad time trying to get a webapp to connect to a MySQL database. I am using tomcat 5.5 and mysql 5 on a Ubuntu Server 7.04 (Fiesty Fawn) As far as i am aware i have set everything up okay and the webapp does actually try and connect to the database. However, it doesn't! See trac

tomcat5.5 and mysql5 permission problem on Ubuntu 7.04 (Fiesty)

2007-08-07 Thread Stephen Pegg
I am having a very bad time trying to get a webapp to connect to a MySQL database. I am using tomcat 5.5 and mysql 5 on a Ubuntu Server 7.04 (Fiesty Fawn) As far as i am aware i have set everything up okay and the webapp does actually try and connect to the database. However, it doesn't! See trac

Re: File permission problem not understood

2007-02-06 Thread Alan Chandler
On Tuesday 06 February 2007 09:57, Pid wrote: > Do you have a SecurityManager running? > > Alan Chandler wrote: > > I have just upgraded my Debian Etch system from tomcat5 to > > tomcat5.5 Yes - that was the issue - I had turned it off on tomcat5 Thanks -- Alan Chandler http://www.chandlerfamily

Re: File permission problem not understood

2007-02-06 Thread David Smith
java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/blog/WEB-INF/classes/META-INF/hivemodule.xml read) This line (above) would indicate you have the security manager running. To fix this, you'll need to adjust conf/catalina.policy to allow re

Re: File permission problem not understood

2007-02-06 Thread Pid
Do you have a SecurityManager running? Alan Chandler wrote: I have just upgraded my Debian Etch system from tomcat5 to tomcat5.5 Now when I start my applications I am getting the following javax.servlet.ServletException: Unable to initialize application servlet: access denied (java.io.FileP

File permission problem not understood

2007-02-05 Thread Alan Chandler
I have just upgraded my Debian Etch system from tomcat5 to tomcat5.5 Now when I start my applications I am getting the following javax.servlet.ServletException: Unable to initialize application servlet: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/blog/WEB-INF/classes/META-

Re: File Writing Permission Problem with Tomcat

2006-07-30 Thread Li
ttpdocs\temp\". if > the app uses context path for that, it should failed cuz the path will be > concerted to "\c:\\temp\", but it was successful. On your UNIX box, can you "su" to the tomcat user and try to create files in the target directory? If that doesn&#x

Re: File Writing Permission Problem with Tomcat

2006-07-29 Thread Christopher Schultz
u" to the tomcat user and try to create files in the target directory? If that doesn't work, then you have a file permission problem. In your original message, it looked like you had covered all the bases, so I'm pretty much guessing at this point. -chris signature.asc Description: OpenPGP digital signature

Re: File Writing Permission Problem with Tomcat

2006-07-29 Thread Li
Hi Chris, Thanks for replying. The exception is FileNotFoundException (Permission Denied) If the path is not correct, it should not have "Permission Denied" message. What i found here is: - File factually uploaded and stored in mem successfully, - when i catched the uploaded file in mem and tr

Re: File Writing Permission Problem with Tomcat

2006-07-28 Thread Christopher Schultz
Li, > when i was trying to upload file and write the file into a folder inside my > apache vritual host folder, i have exception says, file writing denied. Have you confirmed that the path is what you expect (i.e. is really is trying to write to /your/target/directory instead of /somewhere/else/y

File Writing Permission Problem with Tomcat

2006-07-28 Thread Li
Hi guys, I am running a struts app on tomcat 5 on Fedora 4 (psa v8.0.1_build80060613.20 os_FedoraCore 4), when i was trying to upload file and write the file into a folder inside my apache vritual host folder, i have exception says, file writing denied. Selinux is disabled, i had assigned the

Re: Permission problem

2006-07-26 Thread Li
Hi, I am not uploading via FTP, but using application through webapp, the uploaded file has been successfully stored into remote server's RAM, but unable to write to the server's HD. On 7/26/06, Garthfield Carter <[EMAIL PROTECTED]> wrote: To disable Selinux at boot: http://fedora.redhat.com

Re: Permission problem

2006-07-26 Thread Garthfield Carter
To disable Selinux at boot: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825880 Garthfield Carter wrote: When you install it it asks you to enable it or not. The install has it selected "enabled" by default so if you just hit "next", "next" etc then yes it is enabled. Markus

Re: Permission problem

2006-07-26 Thread Garthfield Carter
When you install it it asks you to enable it or not. The install has it selected "enabled" by default so if you just hit "next", "next" etc then yes it is enabled. Markus Schönhaber wrote: Li wrote: I had a struts webapp remotely running with tomcat (started using startup.sh, not catalina

Re: Permission problem

2006-07-26 Thread Markus Schönhaber
Li wrote: > I had a struts webapp remotely running with tomcat (started using > startup.sh, not catalina.sh start -security) in Fedora Core 4 machine. When > I was trying to upload from my local machine. uploading failed. > > The dir which stores the uploaded files is out of tomcat home dir, i gave

Re: Permission problem

2006-07-26 Thread Garthfield Carter
How are you uploading via FTP ? Li wrote: Hi all, I had a struts webapp remotely running with tomcat (started using startup.sh, not catalina.sh start -security) in Fedora Core 4 machine. When I was trying to upload from my local machine. uploading failed. The dir which stores the uploaded

Permission problem

2006-07-26 Thread Li
Hi all, I had a struts webapp remotely running with tomcat (started using startup.sh, not catalina.sh start -security) in Fedora Core 4 machine. When I was trying to upload from my local machine. uploading failed. The dir which stores the uploaded files is out of tomcat home dir, i gave its acce

Re: Commons fileUpload: write to disk permission problem

2006-06-27 Thread Andrea Salvi
sp tag and make sure it matches the path for #1. HTH, Tim > -Original Message- > From: Andrea Salvi [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 8:31 AM > To: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi Tim,

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Mladen Adamovic
Tim Lucia wrote: Have the servlet set the response type to image/jpeg or image/png or whatever is appropriate, and then stream the bytes out of the blob from the DB. Hm, that is something interesting what I need also. As I quickly wrote down that code it should be: byte[] mybytes=// get

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
o: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi Tim, and thanks for your answer. I did as you said and I made a servlet > that handles the users' avatars, but all I can get from the servlet is a > blank image. Here's the servlet code:

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
ROTECTED] > Sent: Monday, June 26, 2006 8:31 AM > To: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi Tim, and thanks for your answer. I did as you said and I made a servlet > that handles the users' avatars, but all I can get from the

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
t; Sent: Monday, June 26, 2006 4:48 AM > To: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi David and thanks for the quick reply. I'll try to use the database to > store the avatars but... I don't know how I can show those im

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
bytes out of the blob from the DB. Tim > -Original Message- > From: Andrea Salvi [mailto:[EMAIL PROTECTED] > Sent: Monday, June 26, 2006 4:48 AM > To: Tomcat Users List > Subject: Re: Commons fileUpload: write to disk permission problem > > Hi David and thanks for

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
except for a thing: I can't save the image on the server's file system, > apparently due to a permission problem (as my program tries to write > in any > folder inside the web application context, Tomcat throws a > FileNotFoundException, saying that access to that folder is d

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread David Delbecq
e image on the server's file system, apparently due to a permission problem (as my program tries to write in any folder inside the web application context, Tomcat throws a FileNotFoundException, saying that access to that folder is denied). Can you tell me how can I fix this problem?

Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
e server's file system, apparently due to a permission problem (as my program tries to write in any folder inside the web application context, Tomcat throws a FileNotFoundException, saying that access to that folder is denied). Can you tell me how can I fix this problem? Regards, Andrea