You are not logged in.
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!
Edited:
And an example of my permission (phpMyAdmin):
~edited because solved~
Last edited by k3rn31 (2008-02-28 22:26:09)
~k3rn31
Offline
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
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
I think remote was referring to your idea of using a 'www-data' user, rather than specifically making the user 'webdata'.
Offline
You may use whatever user name you like, I don't care to have any character/symbols that I may have to escape.
Offline
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
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
Ok, But I don't know any other methods to do it
~k3rn31
Offline
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
Thanks for all the help remote, Solved
~k3rn31
Offline