You are not logged in.

#1 2008-02-25 08:36:53

k3rn31
Member
Registered: 2008-01-09
Posts: 145

[SOLVED Noob question about web server permissions

Hi I have setup up succesfully my web server. Now I am having some permission's questions/problems.

First of all, I want the /home/httpd/home folder not to be show to the other machine users and only to root.
I have created a user www-data and I have conf the apache file.

This is my settings:

My server directory is: /home/httpd and the permissions I have set:

home dir:

~edited because solved~

I have set .htaccess to some folders. I don't know If the permissions are safe or not. Can you help me?
I think that I have different permissions to files and different to the folders...

Thank you! smile


Edited:

And an example of my permission (phpMyAdmin):

~edited because solved~

Last edited by k3rn31 (2008-02-28 22:26:09)


~k3rn31

Offline

#2 2008-02-25 23:22:38

remote
Member
Registered: 2007-12-28
Posts: 44

Re: [SOLVED Noob question about web server permissions

This subject can open a huge can of worms, perhaps the fish will be happy. And what works for one is not always ideal for another.
I like user idea  "webdata" and then:
chown -R webdata:users /home/httpd/html
chmod 005 /home/httpd/html
chmod 004 /home/httpd/html/files

Offline

#3 2008-02-26 14:29:04

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [SOLVED Noob question about web server permissions

Ok remote thank you. But before these commands you said I must change anything else?
And why to rename the user group to web-data?


Thanks again

Last edited by k3rn31 (2008-02-26 14:33:30)


~k3rn31

Offline

#4 2008-02-26 16:43:43

tmadhavan
Member
From: Wales :D
Registered: 2004-03-26
Posts: 441

Re: [SOLVED Noob question about web server permissions

I think remote was referring to your idea of using a 'www-data' user, rather than specifically making the user 'webdata'.

Offline

#5 2008-02-26 20:06:36

remote
Member
Registered: 2007-12-28
Posts: 44

Re: [SOLVED Noob question about web server permissions

You may use whatever user name you like, I don't care to have any character/symbols that I may have to escape.

Offline

#6 2008-02-26 21:24:04

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [SOLVED Noob question about web server permissions

Ok thanks.

So, I will make a new user group or to keep the same and only to type these: ??
chown -R webdata:users /home/httpd/html
chmod 005 /home/httpd/html
chmod 004 /home/httpd/html/files ??

Only that or I must change and other?

Thanks


~k3rn31

Offline

#7 2008-02-26 22:15:50

remote
Member
Registered: 2007-12-28
Posts: 44

Re: [SOLVED Noob question about web server permissions

Please never do anything that I give as an example of how I like to do things. I was simply sharing an idea ; ) Most do not like this method as they have to use the ! in order to save changes.

Offline

#8 2008-02-27 06:54:45

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [SOLVED Noob question about web server permissions

Ok, But I don't know any other methods to do it


~k3rn31

Offline

#9 2008-02-27 07:25:43

remote
Member
Registered: 2007-12-28
Posts: 44

Re: [SOLVED Noob question about web server permissions

This is more of a chat item for me, if you feel like it you can find me most of the time here at http://zaxter.org/xmpp.html if you have flash you can join via a simple click on connect.

Sorry I've not been of much help to you.

Offline

#10 2008-02-27 10:28:06

k3rn31
Member
Registered: 2008-01-09
Posts: 145

Re: [SOLVED Noob question about web server permissions

Thanks for all the help remote, Solved


~k3rn31

Offline

Board footer

Powered by FluxBB