You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Smith <dn...@cornell.edu> on 2006/07/19 16:02:09 UTC
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
Michele.A.Shiels@seagate.com 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: [OT] Problems with file permissions
Posted by Mi...@seagate.com.
Thanks for the help - I'll tweak the ftp side.
Regards,
Michele
"Mead, Jennifer L - VSCM" <Me...@vectorscm.com>
No Phone Info Available
19/07/2006 15:35
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>
To
"Tomcat Users List" <us...@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:dns4@cornell.edu]
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
Michele.A.Shiels@seagate.com 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 <dn...@cornell.edu>
>No Phone Info Available
>19/07/2006 15:02
>Please respond to
>"Tomcat Users List" <us...@tomcat.apache.org>
>
>
>To
>Tomcat Users List <us...@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
>
>Michele.A.Shiels@seagate.com 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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: [OT] Problems with file permissions
Posted by "Mead, Jennifer L - VSCM" <Me...@vectorscm.com>.
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:dns4@cornell.edu]
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
Michele.A.Shiels@seagate.com 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 <dn...@cornell.edu>
>No Phone Info Available
>19/07/2006 15:02
>Please respond to
>"Tomcat Users List" <us...@tomcat.apache.org>
>
>
>To
>Tomcat Users List <us...@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
>
>Michele.A.Shiels@seagate.com 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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] Problems with file permissions
Posted by David Smith <dn...@cornell.edu>.
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
Michele.A.Shiels@seagate.com 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 <dn...@cornell.edu>
>No Phone Info Available
>19/07/2006 15:02
>Please respond to
>"Tomcat Users List" <us...@tomcat.apache.org>
>
>
>To
>Tomcat Users List <us...@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
>
>Michele.A.Shiels@seagate.com 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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] Problems with file permissions
Posted by Mi...@seagate.com.
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 <dn...@cornell.edu>
No Phone Info Available
19/07/2006 15:02
Please respond to
"Tomcat Users List" <us...@tomcat.apache.org>
To
Tomcat Users List <us...@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
Michele.A.Shiels@seagate.com 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org