A Complete Guide to Web Design

(やまだぃちぅ) #1
Uploading Documents (FTP) 59

ServerThe Unix

Uploading Documents (FTP)

Web Design in a Nutshell, eMatter Edition

files from the server to your computer), so these terms may be used in your
FTP program as well. You can also upload multiple files at a time.
5.Disconnect.When you have completed the transfer, be sure to disconnect
from the server. You may want to test the files you’ve uploaded on a browser
first to make sure everything transferred successfully.

Setting Permissions


When you upload files to a web server, you need to be sure that the files’ permis-
sions are set so that everyone is able to read your files.Permissionscontrol who
can read, write (edit), or execute the file (if it is a program), and they need to be
established for the owner of the file, the file’s group, and for “everyone.” When
you create or upload a file, you are automatically the owner, which may mean that
only you can set the permissions.


With an FTP program


Some FTP programs enable you to set the default upload permissions via a dialog
box. Figure 4-7 shows Fetch 3.0.4’s dialog box for doing this. For most web
purposes, you want to grant yourself full permissions but restrict all other users to
read-only. You may want to confirm that your server administrator agrees with
these settings.


The server needs to be specially configured to recognize these permissions
commands, so check with your administrator to see if you can use this easy
method.


Using chmod in Unix


If you are uploading files and creating directories via an FTP client, your client
might not give anyone else in your group the proper permissions. In this case, it
may be necessary to open a telnet session and set permissions on files and direc-
tories manually using the Unix chmod command. Basic chmod syntax and
examples are discussed in this section, but it is best to check with your server
administrator for the correct syntax for your purposes.


Figure 4-7: Standard permissions settings (using Fetch 3.0.4)

Free download pdf