Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

Replying to Permissions For Web


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

mastercomputers

Posted 17 April 2006 - 07:00 AM

As long as your home is 701, and public_html is 705 that should be fine. Setting group permissions doesn't really do much for you unless you add users into your group who are allowed to alter files, if that's the case, you're better off creating a new group and another location in home for this to go, that way you don't need to allow people into your home folder.

Make sure in your httpd.conf you have:

<Directory /home/*/public_html>
	AllowOverride FileInfo AuthConfig Limit
	Options Indexes SymLinksIfOwnerMatch IncludesNoExec
	<Limit GET POST OPTIONS>
		Order allow,deny
		Allow from all
	</Limit>
	<LimitExcept GET POST OPTIONS>
		Order deny,allow
		Deny from all
	</LimitExcept>
</Directory>

This restricts the folder to readonly using the <Limit> and <LimitExcept>, you can remove these if you don't want it.

Make sure to restart apache when making changes to httpd.conf.

That is all I can think of at the moment as to why you can't read the directory. As long as read/execute exists in the permissions it should work.

Cheers,


MC

HellFire121

Posted 17 April 2006 - 12:18 AM

Usually CHMOD to 755, because if you CHMOD to 777 it will give an error saying that the directory is writable etc.

nightfox

Posted 16 April 2006 - 08:56 PM

SELinux is disabled :lol: I know what kind of problems it can cause!

Ok, after following some instructions in httpd.conf, ~userid should have permissions of 711 and ~userid/public_html should have permissions of 755.

I got it to display web documents now, which is good. Directory listing still shows "403 Forbidden" which has its advantages and disadvantages.

I've looked through httpd.conf but I don't see anything about directory listings..

[N]F

mastercomputers

Posted 16 April 2006 - 11:21 AM

Username directory should be chmod 701, public_html should be 701. The owner and group of the files, should still remain the Username.

If using SELinux, you'll also want to do chcon -R -t httpd_sys_content_t /home/Username/public_html

I've written some guides on here that may help you configure it even better, though specifically for Fedora distributions, it may yield some answers.


Cheers,


MC

qwijibow

Posted 16 April 2006 - 09:52 AM

First off,,, chmod 777 is a security risk...
Some web browsers will treat any executable file as a CGI script.

(in other words, simple typing the url of an executable in the web browser will case the program to run)



The problem here is most likely your web server configureation.

The config file sets what is and what is not allowed.

Some web browsers by default do not allow directory browsing, They will show a 403 error if you attenmpt to view a folder, instead of showing the contents of that folder.

Read the config file, in most server config files, the documentation on how to edit the config file will be in comments inside the config file..

its usualy as simple as setting somthing like "ALLOW_DIRECTORY_BROWSING=NO" to "=YES"

Always Always check server config scripts, dont just assume that the default is the most secure.

nightfox

Posted 16 April 2006 - 06:35 AM

I'm having some file permission problems. Whenever I try to access my home directory via the Internet I get a 403 Forbidden message. Except something on this message has caught my eye:

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


I'm not sure what that means other than there's a file permission problem SOMEWHERE.. Just incase this helps, here's what it is set:

The /home/blah/public_html folder owner is blah and group blah. I've even changed it over to apache for both. I've even got the folder CHMODed to 777, still "Forbidden".

What am I doing wrong here? I encountered this last summer but I forget what kind of "tinkering" was done to get it working correctly..

Thanks!

[N]F

Review the complete topic (launches new window)