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]

Reply via email to