<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE object PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object>
<left_navigation />
<body>&lt;!--StartFragment--&gt;&amp;quot;Publishing&amp;quot; web pages means saving HTML and related files to your account on frank.&amp;nbsp;It is sometimes called &amp;quot;saving remotely.&amp;quot;&#13;
&lt;p class="bodyText"&gt;If you are on the campus network, you can publish files by using an FTP client such as Fetch or WS-FTP. These programs allow you to move files from the hard disk or floppy disk on your computer&amp;mdash;called &amp;quot;local&amp;quot;&amp;mdash;to your account on frank&amp;mdash;called &amp;quot;remote.&amp;quot;&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;If you created your web pages with a local HTML editor and didn't use &lt;a href="http://www.mtsu.edu/cgi-bin/hpgenerator/generator.cgi"&gt;Homepage Creator&lt;/a&gt; as a starting point, you will need to create a subdirectory to hold your web pages. To create this subdirectory:&lt;/p&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;Telnet to frank.&lt;/li&gt;&#13;
    &lt;li&gt;Login with your username and password.&lt;/li&gt;&#13;
    &lt;li&gt;&#13;
At the frank prompt enter the command to create a subdirectory&#13;
        &lt;blockquote&gt;&#13;
            &lt;p class="bodyText"&gt;&lt;code&gt;frank $ mkdir public_html&lt;/code&gt;&lt;/p&gt;&#13;
        &lt;/blockquote&gt;&#13;
    &lt;/li&gt;&#13;
    &lt;li&gt;After you create the pubic_html directory, copy your web files there with your ftp client.&lt;/li&gt;&#13;
    &lt;li&gt;Make your web pages available to the public&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;h3 class="bodyText"&gt;&lt;a name="permit" id="permit"&gt;&lt;/a&gt;Making Pages Publically Accessible&lt;/h3&gt;&#13;
&lt;p class="bodyText"&gt;All of the files that you create or upload to your account on frank have default permissions that allow only you to read them. This keeps your memos, letters, and personal files protected from other people. &lt;small&gt;However, you want all of your &lt;em&gt;web page&lt;/em&gt; files to have file permissions that will allow anyone and everyone to read them.&lt;/small&gt;&lt;br /&gt;&lt;br /&gt; The &lt;code&gt;chmod&lt;/code&gt; command will allow you to change file permissions (read, write, or execute) for the user, group, others, or for all. To see a list of items in the directory and the permissions for each item, use the &lt;code&gt;ll&lt;/code&gt; (long list) command:&lt;/p&gt;&#13;
&lt;blockquote class="bodyText"&gt;&#13;
    &lt;p class="bodyText"&gt;&lt;code&gt;frank $ ll&lt;/code&gt;&lt;/p&gt;&#13;
    &lt;p class="bodyText"&gt;&lt;samp&gt;total 2&lt;/samp&gt;&lt;br /&gt; &lt;samp&gt;-rwxr--r-- 1 jdoe oit 427 Oct 30 13:44 index.html&lt;/samp&gt;&lt;/p&gt;&#13;
    &lt;p class="bodyText"&gt;&lt;samp&gt;-rwxr-xr-x 1 jdoe oit 427 Oct 31 12:04 syllabus.html&lt;/samp&gt;&lt;/p&gt;&#13;
    &lt;p class="bodyText"&gt;&lt;samp&gt;drwxrwxrwx 1 jdoe oit 427 Oct 31 12:04 fall2000&lt;/samp&gt;&lt;/p&gt;&#13;
&lt;/blockquote&gt;&#13;
&lt;p class="bodyText"&gt;The permissions are listed in the first column. The list always has 10 spaces, and the letters cannot switch places. The permission list &lt;em&gt;for the first line&lt;/em&gt; is structured as follows:&lt;/p&gt;&#13;
&lt;table border="1" width="50%" cellpadding="5" cellspacing="0" align="center"&gt;&#13;
    &lt;tbody&gt;&#13;
        &lt;tr bgcolor="#ffffcc"&gt;&#13;
            &lt;th&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&amp;mdash;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
            &lt;th&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;r w x&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
            &lt;th&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;r &amp;mdash; &amp;mdash;&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
            &lt;th&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;r &amp;mdash; &amp;mdash;&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr bgcolor="#eeeeee"&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;The first dash tells you that &lt;samp&gt;index.html&lt;/samp&gt; is a file rather than a directory (folder).&lt;br clear="all" /&gt;&lt;br clear="all" /&gt; If &lt;samp&gt;index.html&lt;/samp&gt; were a directory, a &lt;samp&gt;d&lt;/samp&gt; would appear here.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;The next three letters show the permissions that the &lt;strong&gt;user&lt;/strong&gt; has on the file.&lt;br clear="all" /&gt;&lt;br clear="all" /&gt; The user can &lt;strong&gt;r&lt;/strong&gt;ead the file, &lt;strong&gt;w&lt;/strong&gt;rite to the file and e&lt;strong&gt;x&lt;/strong&gt;ecute the file.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;The second three characters show the permissions that the &lt;strong&gt;group&lt;/strong&gt; has on the file.&lt;br clear="all" /&gt;&lt;br clear="all" /&gt; The group can only &lt;strong&gt;r&lt;/strong&gt;ead the file.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;The final set of characters shows the permissions that &lt;strong&gt;others&lt;/strong&gt; (the world) have on the file.&lt;br clear="all" /&gt;&lt;br clear="all" /&gt; Others can only &lt;strong&gt;r&lt;/strong&gt;ead the file.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
    &lt;/tbody&gt;&#13;
&lt;/table&gt;&#13;
&lt;br clear="all" /&gt;&#13;
&lt;p class="bodyText"&gt;To change a permission on a file, at the frank prompt:&lt;/p&gt;&#13;
&lt;ol class="oList"&gt;&#13;
    &lt;li&gt;type &lt;code&gt;chmod&lt;/code&gt; &lt;kbd&gt;spacebar&lt;/kbd&gt;&lt;/li&gt;&#13;
    &lt;li&gt;type the group that you wish to change the permission for &lt;code&gt;u&lt;/code&gt; for user, &lt;code&gt;g&lt;/code&gt; for group, &lt;code&gt;o&lt;/code&gt; for other, or &lt;code&gt;a&lt;/code&gt; for all groups&lt;/li&gt;&#13;
    &lt;li&gt;type &lt;code&gt;+&lt;/code&gt; if you are giving a permission or &lt;code&gt;-&lt;/code&gt; if you are taking away a permission&lt;/li&gt;&#13;
    &lt;li&gt;type the permission that you are giving or taking away (&lt;code&gt;r&lt;/code&gt; for read, &lt;code&gt;w&lt;/code&gt; for write, or &lt;code&gt;x&lt;/code&gt; for execute)&lt;/li&gt;&#13;
    &lt;li&gt;type the name of the file or the directory you are setting the permissions on or use * (asterisk) for all files and subdirectories in public_html&lt;/li&gt;&#13;
    &lt;li&gt;press &lt;kbd&gt;enter&lt;/kbd&gt;&lt;/li&gt;&#13;
    &lt;li&gt;check the new file permissions by typing &lt;code&gt;ll&lt;/code&gt; at the frank prompt&lt;/li&gt;&#13;
&lt;/ol&gt;&#13;
&lt;p class="bodyText"&gt;Usually, you will want to give read permission to the group and others. If you want everyone to access (read and execute) files in your public_html directory, you would enter:&lt;br /&gt;&lt;br /&gt; &lt;samp&gt;frank$ chmod a+rx public_html&lt;/samp&gt;&lt;/p&gt;&#13;
&lt;h4 class="bodyText"&gt;Setting the Same Permissions for Multiple Files&lt;/h4&gt;&#13;
&lt;p class="bodyText"&gt;Often, you will have uploaded several files and will want to change the permission on all of them. You can change the permissions of all files in public_html with a wildcard (&lt;code&gt;*&lt;/code&gt;).&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;small&gt;Note:&lt;/small&gt;Make sure your present working directory (pwd) is public_html before you use this command.&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;frank $ pwd&lt;/code&gt; &lt;kbd&gt;enter&lt;/kbd&gt;&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;frank $ /users/depts/&lt;/code&gt;&lt;var&gt;username&lt;/var&gt;&lt;code&gt;/public_html&lt;/code&gt;&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;frank $ chmod a+r *&lt;/code&gt;&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;This command gives user, group, and other (&lt;code&gt;a&lt;/code&gt;) read permission (&lt;code&gt;r&lt;/code&gt;) on all files (&lt;code&gt;*&lt;/code&gt;) in the public_html directory.&lt;/p&gt;&#13;
</body>
<Dept_Branding />
<Sub_Right_Col1 />
<MTSU_AccessabilityTabs />
<MTSU_MainTabs />
<Sub_Right_Col3 />
<header>Publishing Webpages on Frank</header>
<title />
<MTSU_MainFooter />
<Sub_Right_Col2 />
<search />
</object>

