Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2, userdirs and permissions?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jsosic
Guru
Guru


Joined: 02 Aug 2004
Posts: 510
Location: Split (Croatia)

PostPosted: Tue May 24, 2005 12:26 pm    Post subject: Apache 2, userdirs and permissions? Reply with quote

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
View user's profile Send private message
Rider
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 85
Location: Berne, Switzerland

PostPosted: Tue May 24, 2005 12:53 pm    Post subject: Re: Apache 2, userdirs and permissions? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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