SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
วิธีการกําหนดสิทธิใหกบ Directory เพื่อใหสามารถ Run ดวย Browser ได
                         ั
      เมื่อ login เขามาแลว ใหพิมพ ตามลําดับดังนี้
      1. cd .. เพื่อออกจาก directory ของตัวเอง
      2. ls –l เพื่อตรวจสอบสิทธิของ directory




     สิทธิของการเขาถึงขอมูลจะแบงเปนสามสวนดังนี้




 d     rwx             ---          ---
       Owner          Group       Public


เราตองทําการกําหนดสิทธิใหกับ directory ของเราใหเปน drwxr-xr-x ตามคําสั่งตอไปนี้
     3. chmod 755 –R ตามดวย Login ของเรา
     4. ls –l ตรวจสอบสิทธิตองเปลี่ยนเปน drwxr-xr-x
                               




จากนั้นก็ change directory กลับเขาไปใน directory ของเราเอง
    5. cd ตามดวย login ของเรา
จากนั้นทําการสราง directory public_html เพื่อเปนพื้นที่เก็บ file โปรแกรมของเรา
      6. mkdir public_html

จากนั้นก็ change directory เขาไปที่ public_html
      7. cd public_html

จากนั้นก็ทําการเขียนโปรแกรม java และ html ไดเลย

หมายเหตุ หาก file java , class , html ไมสามารถเรียกผาน Browser ได
คุณตองทําการตรวจสอบสิทธิของแตละ file วาเปน drwxr-xr-x หรือยัง
ดวยคําสั่ง ls -l
หากไมเปนดังกลาว ก็จะไมสามารถ run ผาน browser ได
คุณตองทําการกําหนดสิทธิใหแตละ file โดยพิมพคําสั่ง
chmod 755 ตามดวยชื่อ file
จากนั้นตรวจสอบดูวาเปน drwxr-xr-x แลว ก็จะสามารถ run ผาน browser ได

Mais conteúdo relacionado

Mais de Nitigan Nakjuatong (19)

Applet 5 class_inheritance
Applet 5 class_inheritanceApplet 5 class_inheritance
Applet 5 class_inheritance
 
Applet 4 class_composition
Applet 4 class_compositionApplet 4 class_composition
Applet 4 class_composition
 
662305 11
662305 11662305 11
662305 11
 
662305 10
662305 10662305 10
662305 10
 
662305 09
662305 09662305 09
662305 09
 
Applet 3 design_class_composition
Applet 3 design_class_compositionApplet 3 design_class_composition
Applet 3 design_class_composition
 
662305 08
662305 08662305 08
662305 08
 
Applet 2 container and action_listener
Applet 2 container and action_listenerApplet 2 container and action_listener
Applet 2 container and action_listener
 
662305 Lab7new
662305 Lab7new662305 Lab7new
662305 Lab7new
 
New Assingment3 array2D
New Assingment3 array2DNew Assingment3 array2D
New Assingment3 array2D
 
Assingment3 array2 d
Assingment3 array2 dAssingment3 array2 d
Assingment3 array2 d
 
Lab 6 new
Lab 6 newLab 6 new
Lab 6 new
 
Array2D
Array2DArray2D
Array2D
 
Array
ArrayArray
Array
 
Method part2
Method part2Method part2
Method part2
 
Control structure
Control structureControl structure
Control structure
 
Method JAVA
Method JAVAMethod JAVA
Method JAVA
 
Set putty to use numeric keyboard in pico
Set putty to use numeric keyboard in picoSet putty to use numeric keyboard in pico
Set putty to use numeric keyboard in pico
 
Putty basic setting
Putty basic settingPutty basic setting
Putty basic setting
 

วิธีการกำหนดสิทธิให้กับ Directory

  • 1. วิธีการกําหนดสิทธิใหกบ Directory เพื่อใหสามารถ Run ดวย Browser ได ั เมื่อ login เขามาแลว ใหพิมพ ตามลําดับดังนี้ 1. cd .. เพื่อออกจาก directory ของตัวเอง 2. ls –l เพื่อตรวจสอบสิทธิของ directory สิทธิของการเขาถึงขอมูลจะแบงเปนสามสวนดังนี้ d rwx --- --- Owner Group Public เราตองทําการกําหนดสิทธิใหกับ directory ของเราใหเปน drwxr-xr-x ตามคําสั่งตอไปนี้ 3. chmod 755 –R ตามดวย Login ของเรา 4. ls –l ตรวจสอบสิทธิตองเปลี่ยนเปน drwxr-xr-x  จากนั้นก็ change directory กลับเขาไปใน directory ของเราเอง 5. cd ตามดวย login ของเรา จากนั้นทําการสราง directory public_html เพื่อเปนพื้นที่เก็บ file โปรแกรมของเรา 6. mkdir public_html จากนั้นก็ change directory เขาไปที่ public_html 7. cd public_html จากนั้นก็ทําการเขียนโปรแกรม java และ html ไดเลย หมายเหตุ หาก file java , class , html ไมสามารถเรียกผาน Browser ได คุณตองทําการตรวจสอบสิทธิของแตละ file วาเปน drwxr-xr-x หรือยัง ดวยคําสั่ง ls -l หากไมเปนดังกลาว ก็จะไมสามารถ run ผาน browser ได คุณตองทําการกําหนดสิทธิใหแตละ file โดยพิมพคําสั่ง chmod 755 ตามดวยชื่อ file จากนั้นตรวจสอบดูวาเปน drwxr-xr-x แลว ก็จะสามารถ run ผาน browser ได