LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2003, 05:00 PM   #1
notstrider
Member
 
Registered: Nov 2002
Distribution: Debian
Posts: 35

Rep: Reputation: 15
Apache and File Permissions


hey, i have a question about file permissions for apache.. for instance, i have a few users on my box that just have webspace, and everytime they upload an image file, and goto view.. they come to a Forbidden page.. i'm sure there's a way around this, but i can't seem to figure it out.. i always tell them to do "chmod +rw+r <imagefile>" and that seems to work.. is there a way to do this without chmod'ing the file all the time? kind regards..
 
Old 03-14-2003, 11:44 AM   #2
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Your problem is likely that your 'apache' process (apache, nobody, www, or whatever you have it set up as) can't read the files provided by your users.

The way around it is either have them change it manually, as you have, or get your ftp server to do it.

You'll need to look at 'umask' which translates to 'what permissions I create files with.'

It'll depend on which FTP server you're using, but here's an example page for Pro-FTP which is a popular one :

http://www.castaglia.org/proftpd/doc...WTO-Umask.html

Slick.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache file permissions tntcoder Linux - Newbie 2 08-23-2005 06:50 PM
Apache and File Permissions Matir Linux - Security 6 08-13-2005 12:22 AM
File Permissions with Apache Herbalist Linux - Networking 5 06-17-2005 01:39 PM
File permissions with apache deee Linux - Newbie 3 03-31-2004 02:24 PM
file permissions w/apache php caguru Linux - Newbie 3 04-26-2001 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration