RE: Files, paths and permissions

2004-07-07 Thread Jérôme Duval
The thing is that it doesn't seem to want to run as a different user than
the one it is configured to run as (LocalSystem) and I have no idea what
user this represents (I am in WinXP if someone wants to shine some light). I
have these accounts set up:
Administrator
ASPNET
Default
Guest
HelpAssistant
root<-- Not the unix/linux root user account! It's to allow
accounts called root to use the printer.
SUPPORT_388945a0
Tomcat <-- The user I would like to use to start Tomcat.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 07, 2004 11:11 AM
To: Tomcat Users List
Subject: Re: Files, paths and permissions

On Wed, Jul 07, 2004 at 09:40:21AM -0400, J?r?me Duval wrote:
: Thanks for the pointer! Not running it as a service made it worked. Guess
: I'll have to stick to that from now on.

... or you could find out what user owns/runs services and grant that user
write-access to the folder.

That would be a long-term solution.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Files, paths and permissions

2004-07-07 Thread Jérôme Duval
Thanks for the pointer! Not running it as a service made it worked. Guess
I'll have to stick to that from now on.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 06, 2004 5:21 PM
To: Tomcat Users List
Subject: Re: Files, paths and permissions

On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote:
: Yet these lines of code in my servlet:
:   File target = new File("Msi\\nouveau dossier\\","Commande.web");
:   if(!target.exists()) {
:   System.out.println("The file doesn't exist!");
:   }
:   FileWriter fileOutput = new FileWriter(target,true);
: 
: produce: The file doesn't exist!

Does the owner of the Tomcat process have write access to that folder?

If you're running Tomcat as a service, I understand it has different perms
than if you fire it up directly as the logged-in user.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Files, paths and permissions

2004-07-07 Thread QM
On Wed, Jul 07, 2004 at 09:40:21AM -0400, J?r?me Duval wrote:
: Thanks for the pointer! Not running it as a service made it worked. Guess
: I'll have to stick to that from now on.

... or you could find out what user owns/runs services and grant that
user write-access to the folder.

That would be a long-term solution.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Files, paths and permissions

2004-07-06 Thread QM
On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote:
: Yet these lines of code in my servlet:
:   File target = new File("Msi\\nouveau dossier\\","Commande.web");
:   if(!target.exists()) {
:   System.out.println("The file doesn't exist!");
:   }
:   FileWriter fileOutput = new FileWriter(target,true);
: 
: produce: The file doesn't exist!

Does the owner of the Tomcat process have write access to that folder?

If you're running Tomcat as a service, I understand it has different
perms than if you fire it up directly as the logged-in user.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]