PDA

View Full Version : New business web site, need serious help



andymn
03 Nov 2006, 02:53 PM
As above, can't get the site to load in browser......made with trendy flash site builder.

Here's a list of my files, do they need to be in a different order, I just don't know!!



Transform selected entries:

Up one level

All Name Type Size Owner Group Perms Mod Time Actions
Directories (2)


cgi-bin
Directory 512 Owner Group rwx------ Nov 1 23:16


index.htm
Directory 512 Owner Group rwx------ Nov 3 17:06
Files (12 / 1.76 MB)


27600.jpg
JPEG file 18259 Owner Group rwx------ Nov 2 14:57 View
Edit
Open



architecture_009.swf
Shockwave file 24452 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



contact.asp
ASP script 1191 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



index.html
HTML file 716 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



pss008.swf
Shockwave file 104296 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



queen.mp3
MP3 File 1680742 Owner Group rwx------ Nov 2 00:10 View
Edit
Open



site.js
JavaScript file 965 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



site.swf
Shockwave file 66 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



sitebottom.html
HTML file 52 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



sitecontent.swf
Shockwave file 7935 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



siteinitial.swf
Shockwave file 7793 Owner Group rwx------ Nov 2 09:57 View
Edit
Open



sitetop.html
HTML file 567 Owner Group rwx------ Nov 2 09:57 View
Edit
Open

____________________________________________________________

where do i go from here..........i need step by step
cheers
Andy

alvo
03 Nov 2006, 06:17 PM
None of your files have world readable permissions.
rwx------ gives read/write/execute permissions to the file "owner" only (you when you're directly logged into the server). There are nine characters in the permission here. The last three rwx------ tell what visitors to your site can do, and "---" means they can do nothing at all, can't read, write or execute files (also refered to as 700 where that last zero is your visitor (the middle three spaces are for "group" ... just set them the same as the last three). You need to change permissions on the files to match what a person needs to do with it.

Here are the possibilities:

read/write/execute is rwx or 7
read/write is rw- or 6
read/execute is r-x or 5
read only is r-- or 4

Those are probably the only options you'll ever use. You need to determine what access each file needs and assign the permission appropriately. You could just assign them all rwx or 7 and everything would work, but that opens up potential security problems by giving more permissions than actually required.

If you have Telnet access to your account you can navigate to the directory and issue the command:

chmod 755 filename
"chmod" is the command name, (change mode); 755 are the permissions; "filename" is the name of the file you want to change.

You can also use an FTP program for this, usually by selecting a particular file and choosing "get permissions" (varies by program). They may refer to the file permission by name, letter or number.

If a file is a static page that people only read, give it permissions of rw-r--r-- or 644. That will allow you to change it on the server but only let people read it (which is all they'll be doing anyway). If the page writes information to the server you need to give read and write permissions to everyone, so rw-rw-rw- or 666.

If it's a script file you'll need to give execute permissions, so rwx-r-xr-x or 755 (gives you read/write/execute; them read/execute). If it's a script that writes to the server as well, then rwxrwxrwx or 777.

Don't forget to set enough permissions for the directory the files reside in. Set the directory to match the highest permissions of any file within it. Your default home directory will already have maximum permissions assigned to it.

You arrive at the numbers by addition. read=4; write =2; execute=1 so read + write = 4+2 or 6.