You need the directory "public_html" at the top level of your Hercules account. This directory must contain the file "index.html" which acts as your home page. I recommend that you create a directory called "images" inside public_html to contain your GIF images. The following sequence assumes that neither of these directories exists and creates both. Finally, the correct permissions are established for the directories, including your home directory. Your home directory has the same name as your username.
NOTE: we start this session from the point where the user has just logged into Hercules. hercules[2]% mkdir public_html *** the above command, mkdir, creates a directory. The directory structure on Unix is very similar to DOS so you might want to review an introductory book on DOS. hercules[2]% ls *** "ls" is equivalent to the DOS "dir" command. The contents of the directory are listed. Notice that public_html is shown with a "/" at the end of the name to reflect that it is a directory rather than an ordinary file. MAC/ browser1 rbm all public_html/ replace* awk.2* hercules[3]% cd public_html *** "cd" for change directory repositions the user inside the public_html directory. The "images" directory is then created inside public_html. hercules[4]% mkdir images hercules[5]% ls images/ *** "chmod" for "change mode" changes the access permissions on the images directory. The 755 sets the 9 bits related to user, group and world access to the file or directory. hercules[6]% chmod 755 images hercules[7]% ls -l total 1 drwxr-xr-x 2 rbm2 csugrd 512 May 21 11:28 images/ *** Now we back up one level and set the permissions for public_html. hercules[8]% cd .. hercules[9]% chmod 755 public_html hercules[10]% ls -l *** the "ls -l" command provides a "long" version of the directory listing. Just checking that the permissions were changes correctly. total 218 drwxr-xr-x 5 rbm2 csugrd 512 Jan 21 1993 MAC/ -rw------- 1 rbm2 csugrd 90380 Jan 20 1993 all -rwx------ 1 rbm2 csugrd 265 Mar 1 1993 awk.2* -rw------- 1 rbm2 csugrd 28 Jan 20 1993 browser1 drwxr-xr-x 3 rbm2 csugrd 512 May 21 11:28 public_html/ -rw------- 1 rbm2 csugrd 9 Mar 25 1993 rbm -rwxr-xr-x 1 rbm2 csugrd 107 Nov 17 1992 replace* *** now we back up one more level. This puts us above the account and an "ls" lists all the accounts in this area. Since this material was captured from an actual session in the account "rbm2" on hercules, we see usernames for accounts starting with an "r". The final step is to set the permissions for the account "rbm2". hercules[11]% cd .. hercules[12]% ls rackow.mail rashidb/ rezans/ rogan/ runyon/ rackow.save/ ratcli/ rezaza/ romano/ russell/ rahman/ rathee/ rieger/ ross/ ryback/ ramada/ rbm2/ riffel/ rostie/ ramostru/ reid/ riffelk/ rottie/ ranasi/ reinha/ robert/ ruda/ randal/ reschk/ robertso/ rudolp/ hercules[13]% chmod 755 rbm2 *** the above command would use your username instead of "rbm2". hercules[14]% cd *** "cd" without any arguments always positions you back in your home directory, that is, your top directory level. The "pwd" command (print working directory) lists the directory in which you are currently positioned. hercules[15]% pwd /u/r/rbm2 hercules[16]% logout Quote of the day "Try not to have a good time. . .This is supposed to be educational." --Charles Schulz Today: Battle of Iquique in Chile Easter Saturday in Fiji (1984?) (probably movable) Memorial Day in Michigan (1984) (3rd Monday) Victoria Day in Canada Logged out on: Sun May 21 11:30:10 CST 1995
CS490 | Tutorials | Back | Continue |
FTP introduction | setting up your Hercules account | transfer files to Hercules | transfer files from Hercules |