file permissions on www


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers file permissions on www
# 1  
Old 12-08-2003
Data file permissions on www

I recently purchased an account at a web host provider.
When I logged into my file system for the first time to check the file permissions, I noticed that the file permissions on the www folder where like this:

drwxr-x---

The index.html file was in the www folder as expected.

If I have understood right, "the world", that means all the unknown people who visit my web page, usually belongs to "other". With file permissions set like this, I expected that no one could access my web page, but I still could access it when I pointed my browser to my domain!!??

I guess the reason is that "the world" belongs to "group" rather than "other"......or ?

Any ideas why my web host provider has set up the permissions like this ? Is this a security problem ?


Thanks
Regards
Victor Haugen
# 2  
Old 12-09-2003
If you're really worried about it, contact the provider. But since the files are being stored on a server on someone else's computer (your provider's), you owning the folder on their computer doesn't mean anything different happens on your computer when you type in the url. Type the url http://whatever/your/site/is into your browser; if you can see the page, so can anyone else visiting your site.
# 3  
Old 12-09-2003
What worries me is that "The whole world" belongs to "group" .... rather than "other".


Victor
# 4  
Old 12-09-2003
Quote:
Originally posted by vic20
What worries me is that "The whole world" belongs to "group" .... rather than "other".
No, it just means that the webserver process belongs to the group. You didn't state which group owns your directory, but it might be called, for example, "web". The webserver is probably running as user "apache" or similar -- you will find that user is also a member of group "web".

Hope that helps.
# 5  
Old 12-09-2003
Quote:
Originally posted by PxT
No, it just means that the webserver process belongs to the group. You didn't state which group owns your directory, but it might be called, for example, "web". The webserver is probably running as user "apache" or similar -- you will find that user is also a member of group "web".

Hope that helps.
Ok, thanks! Now, I understand Smilie


Victor
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

2. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

3. Solaris

file permissions

There is the following file in my filesystem (VXFS) shown by "ls -l" command: ---s--l--- 1 user group 0 Mar 26 16:13 file.tmp What does "l" bit mean in these permissions? This is SunOS 5.10: $ uname -a SunOS hostname 5.10 Generic_144488-03 sun4u sparc SUNW,SPARC-Enterprise ... (2 Replies)
Discussion started by: darkshine
2 Replies

4. UNIX for Dummies Questions & Answers

Permissions of the folder var/www

what should be the permissions of the folder var/www in my ubuntu ? I need it to be safe and at the same time I need ftp users to be able to edit it. I was wondering if I should create a group with all permissions and add ftp users to this group in unix. what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies

5. Web Development

var/www/html permissions

Hi, first post. I have no Linux experience. I have an e-friend that set me up a VPS and my website with Apache and FTP access so I could upload my files the way I do it regularly with my shared hosting. The OS in the VPS is Fedora by the way. Now the thing is: http ://www.mydomain.com presents... (0 Replies)
Discussion started by: JPA
0 Replies

6. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

7. UNIX for Advanced & Expert Users

File Permissions

Hi All, Could any one help me on is there any file where all file permissions are being stored? Please help me. (10 Replies)
Discussion started by: umesh.rout
10 Replies

8. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

9. Cybersecurity

help with file permissions

Every time I copy files to a directory I am unable to edit the files. Why? The user is part of the group that has permissions to edit. The user can create and delete files but cannot edit files that are copied to the directory? :confused: (3 Replies)
Discussion started by: bbbngowc
3 Replies
Login or Register to Ask a Question