Good question! I guess it would depend on what tomCat's doing with the
files. Reading a file shouldn't change the ownership, and yes, so long as
the TomCat user has read/write access, it shouldn't need to own the files.
Unix, eh?

Thanks,
 
John
 
Quote for the week:
 
The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.
 
Thomas Szasz, The Second Sin (1973)


-----Original Message-----
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:52
To: 'Tomcat Users List'
Subject: RE: Tomcat changing file ownership


Thanks. That will definitely solve the problem, but why does tomcat change
the files to its ownership? As long as it can read the files, I wouldn't
think tomcat would need to own the files to run them?

Ted

-----Original Message-----
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 9:42 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat changing file ownership


Ted,

If I understand your question correctly, you want to find a way to alter the
default file permissions for the TomCat user?

The only thing I can think of is umask, which sets the default permissions.
In Solaris (C shell):

umask 000

Sets (I think!) read and write for all (user, group, other) on files, and
full permissions on directories. Try putting the command in catalina.sh or
the tomcat user's login script.

Thanks,

John

Quote for the week:

The stupid neither forgive nor forget; the naive forgive and forget; the
wise forgive but do not forget.

Thomas Szasz, The Second Sin (1973)


-----Original Message-----
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 14:07
To: tomcat-user
Subject: Tomcat changing file ownership


I am running tomcat 4.0.3 rpm on Redhat Linux 7.1. Every so often, tomcat
updates all the files in its folder structure (/var/tomcat4/) to be owned by
the tomcat user and readonly for everyone else. The problem being that when
I want to modify/overwrite anyone of these files, I have to go into the
linux server and chmod for every file/folder. This happens all day long. Is
there a way to turn this off?

Thanks, Ted


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to