Re: [OT] Problems with file permissions

2006-07-19 Thread David Smith

Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.

2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.


---David

[EMAIL PROTECTED] wrote:


Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 
ftp'd to the webserver the permissions are -rw-r- and browsers trying 
to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?


Thanks for your Help!
Michele
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Problems with file permissions

2006-07-19 Thread Michele . A . Shiels
Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [OT] Problems with file permissions

2006-07-19 Thread David Smith
We answer all kinds of questions here.  Just protocol to mark off topic 
posts as such.


In the Unix environment, the ftp service (not to be confused with the 
ftp client) can depending on vendor be configured to set permissions as 
it receives files.  I know in ProFTPd, it's set using the umask config 
setting.  Try to find out what ftp service you have on the server and 
look at it's man pages for info on what config settings are available.


Actually, it's not Apache that cares about file permissions, but the OS 
(unix in this case).  Apache may start as root, but it's workers are all 
spawned as unprivileged users (the user 'apache' in my the case of my 
server) and the OS will deny access if the apache worker doesn't at 
minimum have read access.


--David

[EMAIL PROTECTED] wrote:


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.


Thanks again for any help you can give.
Michele 




David Smith [EMAIL PROTECTED] 
No Phone Info Available

19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.

2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.


---David

[EMAIL PROTECTED] wrote:

 


Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 
   



 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 
   



 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
   

own 
 


the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?


Thanks for your Help!
Michele


   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Problems with file permissions

2006-07-19 Thread Mead, Jennifer L - VSCM
Michelle,

I am jumping into the middle of this thread so I apologize.  If you set
the umask of the owner of the files.  So when you do a listing ls -alt
in the directory that the files are in and see the owner.  Then go into
that user's .profile in their home directory you can set the umask.
Like for instance you could say: umask a=rw.

Hope that helps,
Jennifer 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 7:29 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions

We answer all kinds of questions here.  Just protocol to mark off topic
posts as such.

In the Unix environment, the ftp service (not to be confused with the
ftp client) can depending on vendor be configured to set permissions as
it receives files.  I know in ProFTPd, it's set using the umask config
setting.  Try to find out what ftp service you have on the server and
look at it's man pages for info on what config settings are available.

Actually, it's not Apache that cares about file permissions, but the OS
(unix in this case).  Apache may start as root, but it's workers are all
spawned as unprivileged users (the user 'apache' in my the case of my
server) and the OS will deny access if the apache worker doesn't at
minimum have read access.

--David

[EMAIL PROTECTED] wrote:

Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a 
Unix box so windows doesn't know about setting file permissions in this

instance.

I have put out questions on the HP side as well but I am just puzzled 
why Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele



David Smith [EMAIL PROTECTED]
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files 
created under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

  

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file

is



  

ftp'd to the webserver the permissions are -rw-r- and browsers 
trying



  

to access the url are forbidden to view.  Once I chmod 666 the file 
then browsers gain access.  But as my website changes constantly I 
don't want to do this every time.  Apache is owned by 'root' but I 
administer and


own
  

the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele






-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Problems with file permissions

2006-07-19 Thread Michele . A . Shiels
Thanks for the help -  I'll tweak the ftp side.

Regards,
Michele



Mead, Jennifer L - VSCM [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:35
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
RE: [OT] Problems with file permissions






Michelle,

I am jumping into the middle of this thread so I apologize.  If you set
the umask of the owner of the files.  So when you do a listing ls -alt
in the directory that the files are in and see the owner.  Then go into
that user's .profile in their home directory you can set the umask.
Like for instance you could say: umask a=rw.

Hope that helps,
Jennifer 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 7:29 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions

We answer all kinds of questions here.  Just protocol to mark off topic
posts as such.

In the Unix environment, the ftp service (not to be confused with the
ftp client) can depending on vendor be configured to set permissions as
it receives files.  I know in ProFTPd, it's set using the umask config
setting.  Try to find out what ftp service you have on the server and
look at it's man pages for info on what config settings are available.

Actually, it's not Apache that cares about file permissions, but the OS
(unix in this case).  Apache may start as root, but it's workers are all
spawned as unprivileged users (the user 'apache' in my the case of my
server) and the OS will deny access if the apache worker doesn't at
minimum have read access.

--David

[EMAIL PROTECTED] wrote:

Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a 
Unix box so windows doesn't know about setting file permissions in this

instance.

I have put out questions on the HP side as well but I am just puzzled 
why Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele



David Smith [EMAIL PROTECTED]
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files 
created under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

 

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file

is
 


 

ftp'd to the webserver the permissions are -rw-r- and browsers 
trying
 


 

to access the url are forbidden to view.  Once I chmod 666 the file 
then browsers gain access.  But as my website changes constantly I 
don't want to do this every time.  Apache is owned by 'root' but I 
administer and
 

own
 

the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele


 



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [OT] Problems with file permissions

2006-07-19 Thread Propes, Barry L
Michelle. See if you can create a new folder on the UNIX server while in an FTP 
program like CoreFTP or WinsockFTP.

Then dump everything to THAT folder and see if permissions are kept intact.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:16 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Problems with file permissions

2006-07-19 Thread Martin Gainty
echo $HOME
(this is your users home folder where all FTP access should get files from OR 
put files to..)

HTH
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Propes, Barry L [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 11:33 AM
Subject: RE: [OT] Problems with file permissions


Michelle. See if you can create a new folder on the UNIX server while in an FTP 
program like CoreFTP or WinsockFTP.

Then dump everything to THAT folder and see if permissions are kept intact.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 9:16 AM
To: Tomcat Users List
Subject: Re: [OT] Problems with file permissions


Hi David,
Thanks for that and sorry for my ignorance of Apache Tomcat but I have 
just moved from an old IIS server that didn't care about the file 
permissions.  I am using ftp from Windows (using Dreamweaver)  to a Unix 
box so windows doesn't know about setting file permissions in this 
instance. 

I have put out questions on the HP side as well but I am just puzzled why 
Apache cares about file permissions instead of user/group security.

Thanks again for any help you can give.
Michele 



David Smith [EMAIL PROTECTED] 
No Phone Info Available
19/07/2006 15:02
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: [OT] Problems with file permissions






Two solutions, neither are 'apache' solutions:

1. Set sticky bits on the permissions on the folder so new files created 
under it adopt it's settings.
2. Configure your ftp service to correctly set permissions on upload.

Of course, I don't see where any of this has to do with tomcat, hence 
the OT marker in the subject.

---David

[EMAIL PROTECTED] wrote:

Hi Tomcat users!

I have a problem with user permissions on my web server -  when a file is 

ftp'd to the webserver the permissions are -rw-r- and browsers trying 

to access the url are forbidden to view.  Once I chmod 666 the file then 
browsers gain access.  But as my website changes constantly I don't want 
to do this every time.  Apache is owned by 'root' but I administer and 
own 
the site documents as 'web'.
How can I change apache to allow public access to files with read 
permissions?

Thanks for your Help!
Michele
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]