View previous topic :: View next topic |
Author |
Message |
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Tue May 24, 2005 12:26 pm Post subject: Apache 2, userdirs and permissions? |
|
|
Here's one begginer question.
I have never run apache before on my home machine, and now it's up. But if I set chmod 700 to my /home/user dir, pages don't show up It needs to be 755. But with permission set that high, every user of my machine has access to /home/user dir and files in it. Can this be avoided somehow?
Thank you |
|
Back to top |
|
|
Rider Tux's lil' helper
Joined: 07 Jan 2003 Posts: 85 Location: Berne, Switzerland
|
Posted: Tue May 24, 2005 12:53 pm Post subject: Re: Apache 2, userdirs and permissions? |
|
|
Hi,
jsosic wrote: | But with permission set that high, every user of my machine has access to /home/user dir and files in it. Can this be avoided somehow?
|
Well, you could chown the group to the same as apache runs, afterwards chmod 755.
example:
Code: |
chown youruser:apache /home/youruser/public_html
chmod 750 /home/youruser/public_html
|
However if you're running for example mod_php and you're in a shared webhosting environment, it's possible for others to browse your files with a php script.
Cheers,
Chris |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|