[Csci1301] Re: WEB PAGE

John Howland jhowland at ariel.cs.trinity.edu
Tue Oct 5 11:01:14 CDT 2004


On Mon, 27 Sep 2004, Wiseman, Heather wrote:

> 
> Hi Dr. Howland,
> I am still stuck on this web page. I have saved it in my HTML-documents but one: When i clikc on my pic i am forbidden access. Second: Why are my pics not showing up on my web page? 

Heather,

Sorry for the delay in responding (last week was impossible for me
because of the trip I had to take).

I logged on as you and found:

[hwiseman at Hardy hwiseman]$ cd Local/HTML-Documents/
[hwiseman at Hardy HTML-Documents]$ l
total 224
drwxr-xr-x  3 hwiseman hwiseman   4096 Sep 29 16:43 ./
drwxr-xr-x  8 hwiseman hwiseman   4096 Aug 31 11:17 ../
-rw-------  1 hwiseman hwiseman   2427 Sep 22 14:29 1lab1.html
-rw-------  1 hwiseman hwiseman   4172 Sep 29 16:43 4bit.gif
drwx------  2 hwiseman hwiseman   4096 Sep 29 14:48 heather webpage_files/
-rw-r--r--  1 hwiseman hwiseman   1260 Sep  8 16:08 lab10.html
-rw-r--r--  1 hwiseman hwiseman   1263 Sep  8 16:08 lab11.html
-rw-r--r--  1 hwiseman hwiseman  10843 Sep 22 14:38 lab1.html
-rw-r--r--  1 hwiseman hwiseman   1266 Sep  8 16:08 lab2.html
-rw-r--r--  1 hwiseman hwiseman   1965 Sep 29 16:32 lab3.html
-rw-r--r--  1 hwiseman hwiseman   1257 Sep  8 16:08 lab4.html
-rw-r--r--  1 hwiseman hwiseman   1252 Sep  8 16:08 lab5.html
-rw-r--r--  1 hwiseman hwiseman   1250 Sep  8 16:08 lab6.html
-rw-r--r--  1 hwiseman hwiseman   1246 Sep  8 16:08 lab7.html
-rw-r--r--  1 hwiseman hwiseman   1271 Sep  8 16:08 lab8.html
-rw-r--r--  1 hwiseman hwiseman   1281 Sep  8 16:08 lab9.html
-rw-r--r--  1 hwiseman hwiseman   1442 Sep  8 16:08 lab-reports.html
-rw-r--r--  1 hwiseman hwiseman   1223 Sep  8 16:08 lab-template.html
-rw-r--r--  1 hwiseman hwiseman 137655 Aug 31 16:09 mypicture.jpg
[hwiseman at Hardy HTML-Documents]$ chmod 644 4bit.gif 1lab1.html 

After the chmod we have:

[hwiseman at Hardy HTML-Documents]$ l 4bit.gif 1lab1.html
-rw-r--r--  1 hwiseman hwiseman 2427 Sep 22 14:29 1lab1.html
-rw-r--r--  1 hwiseman hwiseman 4172 Sep 29 16:43 4bit.gif

which makes those two files available to the public.

Your heather webpage_files/

also have the wrong permissions:

[hwiseman at Hardy HTML-Documents]$ l heather\ webpage_files/
total 16
drwx------  2 hwiseman hwiseman 4096 Sep 29 14:48 ./
drwxr-xr-x  3 hwiseman hwiseman 4096 Sep 29 16:43 ../
-rw-------  1 hwiseman hwiseman 8020 Sep 27 14:34 heather webpage.html

Since heather webpage_flies has a space in the folder name it is
necessary to quote the space with \ when referring to the folder name.
To change the permissions of the folder and the file inside we need to:

[hwiseman at Hardy HTML-Documents]$ chmod 755 heather\ webpage_files/
[hwiseman at Hardy HTML-Documents]$ chmod 644 heather\ webpage_files/heather\ webpage.html 

The 755 permissions are necessary for public folders while 644 are the permissions
needed for public folder contents.  If you go back to lab 0 and look at
the Unix tutorial, you will find reference to the commands I have used
here.

I'm taking the liberty of copying this message to the class discussion
list since many others are having trouble with file permissions.

John

> Thanks,
> Heather
> 
> -----Original Message-----
> From: John Howland [mailto:jhowland at ariel.cs.trinity.edu]
> Sent: Wed 9/22/2004 11:25 AM
> To: Wiseman, Heather
> Subject: RE: editing my lab report
>  
> On Tue, 21 Sep 2004, Wiseman, Heather wrote:
> 
> > I used vi editor on the computers in our classroom. i also tried the contiue option and it still wouldn't post my lab report. Any ideas?
> 
> I don't know what you mean by "post my lab report".  Do you mean that you
> are having trouble saving it so that it can be viewed by a web browser?
> If so, it should be saved as Local/HTML-Documents/lab1.html .
> Otherwise, I will have to see what you are doing to trouble shoot this
> one.
> 
> > 
> > ________________________________
> > 
> > From: John Howland [mailto:jhowland at ariel.cs.trinity.edu]
> > Sent: Tue 9/21/2004 3:09 PM
> > To: Wiseman, Heather
> > Cc: csci1301 at sol.CS.Trinity.Edu
> > Subject: Re: editing my lab report
> > 
> > 
> > 
> > On Tue, 21 Sep 2004 Heather.Wiseman at Trinity.edu wrote:
> > 
> > > Hi,
> > >
> > > I am having trouble editing my lab report. It says that it has either crashed or I am already editing it. What am I doing wrong?
> > 
> > Heather,
> > 
> > The message you are getting is the result of a check the
> > editor you are using (you don't say what editor that is) does
> > when it starts to edit a file which was previously in the process of being
> > edited and something happened to the editor program.
> > 
> > You are given the option of going ahead and ignoring this condition which
> > is what you should do.
> > 
> > One way this can happen (because an actual crash of the editor program is
> > an extreemly rare occurance) is that you failed to quit the editor program
> > before logging out or you forgot and left the workstation logged in and
> > someone else killed your login session.
> > 
> > John
> > 
> > >
> > > Thanks,
> > >
> > > Heather
> > 
> > --
> > _______________________________________________________________
> > John E. Howland       url: http://www.cs.trinity.edu/~jhowland/
> > Computer Science    email: jhowland at ariel.cs.trinity.edu
> > Trinity University  voice: (210) 999-7364
> > One Trinity Place     fax: (210) 999-7477
> > San Antonio, Texas  78212-7200
> > 
> > 
> > 
> 
> 

-- 
_______________________________________________________________
John E. Howland       url: http://www.cs.trinity.edu/~jhowland/
Computer Science    email: jhowland at ariel.cs.trinity.edu
Trinity University  voice: (210) 999-7364
One Trinity Place     fax: (210) 999-7477
San Antonio, Texas  78212-7200



More information about the CSCI1301 mailing list