chmod for public_html ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers chmod for public_html ?
# 1  
Old 12-02-2005
Question chmod for public_html ?

Hello!

My web host has the public_html permission on my account set to 750.

1. Does this setting permit the world to use my submission forms
(contained within contact.html and purchase_order.html)?

2. The "0" entry looks like it blocks the public from conducting all activity
on my site. Does it?

(Scratches head ...) Smilie
# 2  
Old 12-02-2005
750 says that the owner has read, write, execute and the users in the named group have read and execute privs. Everyone else is locked out with the '0'.

Your webserver is running as some effective uid. This id would have read permissions to your submission forms only if it is either the owner, or a member of the group.

You are probably using some shared web hosting service that allows lots of people to share the same physical machine. This file permission set would prevent other users that are logged into that machine from reading/writing your html files, but continue to allow the web server unix user to read your files.

Hopefully this helps.
# 3  
Old 12-02-2005
Hi! I am indeed on a shared server.

Does your last paragraph mean that visitors -- the world --
are blocked from filling in and Submitting my online forms?
# 4  
Old 12-02-2005
Visitors to your web site sending requests to your web server. This web server has a unix user associated with it. The permissions of this unix user are what governs whether the page can be read or not.

If your web server user has read privs to that directory, then it will display the content.
# 5  
Old 12-02-2005
Web request are not "world" restricted, they are "owner" restricted.
I believe that this is the crux of your question.
# 6  
Old 12-02-2005
Thanks for your replies; however, does the "0" mean
that the public cannot write into my forms and also
cannot send my forms?
# 7  
Old 09-10-2007
public_html

Hello,
i am new to unix.com, i need help making a website from the public_html.
this webpage will help people, so please contact me as soon as you can to help me!

love,
the piffle people
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

$_SERVER['DOCUMENT_ROOT'] directs to /var/www not ~/public_html

Hi all, Exactly like my title says. I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use ~/public_html instead. Now I when I tried to use $_SERVER it still directs (I used echo to show... (7 Replies)
Discussion started by: faizlo
7 Replies

2. UNIX for Dummies Questions & Answers

chmod

Hi I tried to use chmod in unix to change my file's permission. chmod 701 hello.cgi And it did change my desired file's permission. Yet, the name of the file is changed to hello.cgi* . And therefore I cannot compile it after that. So, I just wondering why there is an extra '*' in the file's... (2 Replies)
Discussion started by: alvin8906
2 Replies

3. UNIX for Dummies Questions & Answers

Granting user permission for public_html

I have problem giving user access to his public_html directory. While when I am logged as root I can access my files by going to www.myserver.com/file.htmlwhere file.html is actually on this path... var/www/file.htmlBut when user tries to access his file.html on this path.... ~user/file.html it... (10 Replies)
Discussion started by: joker40
10 Replies

4. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

5. UNIX for Dummies Questions & Answers

CHMOD query

Hi peeps, I'm new here, so I hope I'm posting in the right place... If I'm in a particular directory and I run the command 'CHMOD * 777' (or the other way around- I can't remember), am I right in saying it will only change the permissions of all the immediate files and directories and not... (1 Reply)
Discussion started by: jsp_1983
1 Replies

6. UNIX for Dummies Questions & Answers

chmod...

Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing. At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
Discussion started by: mo0ness
3 Replies

7. UNIX for Advanced & Expert Users

find a file or directory under public_html

Hi there, I have a quick question about the UNIX command find, if you can help me I will appreciate it... I am trying tho find a file which is under my 'public_html' directory. As I know, I am making the command > find ~ -name filename(or directory name) to find the file or directory... (4 Replies)
Discussion started by: milhan
4 Replies

8. UNIX for Dummies Questions & Answers

chmod

Hi, can anybody help me? i have probable a simple problem about permissions. i have a server and on this server there comes some files from a another server via ftp with a separte user. i would like to modify the files with a awk script but i donīt have the permissions to modify the... (3 Replies)
Discussion started by: scotty
3 Replies

9. UNIX for Dummies Questions & Answers

Chmod Help!

Here is the deal, I am good with html and java and am creating a website for my brother. On this site he has chosen to use a ikonboard.com discussion board. I have done everything I can to pull it off, but no can do. Here is the problem: The site is being created using the angelfire... (12 Replies)
Discussion started by: xwfprez
12 Replies

10. UNIX for Dummies Questions & Answers

CHMOD Help!!

Ok, listen.........I was using FTP Works to remove and add some files to a domain server. I messed with chmod button and made it so that no-one could access or their browsers could execute files and 2 or three certain directories. If anyone knows how to use this command and will give me a heads up... (2 Replies)
Discussion started by: jarrell
2 Replies
Login or Register to Ask a Question