Tutorial 3

Tutorial 3 - Tutorial 3 In this tutorial, we are going to...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Tutorial 3 In this tutorial, we are going to exercise our knowledge on file permissions. Why need to change file permissions? It protects files from accidental deletion or modification; It allows team members to read, modify, execute, and possibly even delete a file without having to send them a copy; When setting up your webpage on UNIX, you have to make the html files accessible or no one will be able to see it! ... In order to carry out the following exercises, please follow the following instructions: Work in pairs; Logon a machine from cs1 to cs3 at utdallas.edu, type in your UTD netid and password one at a time followed by pressing the "Enter" key; You can use either putty or Xmanager to access these UNIX machines. For detail instructions on login, please refer back to Tutorial 1 . Create Directories and Files The goal is to create three subdirectories with eight testfiles in each one to match the permissions, and your partner will try out some basic commands on the files: // 8 files // 8 files Follow the steps below to create a subdirectory where you can work on this tutorial. First, create a new subdirectory: {cs1:~} mkdir tutorial3 {cs1:~} ls -l total 178
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
drwx------ 4 weiminma sn 1024 Jan 19 2008 aos drwx--x--x 2 weiminma cs 512 Sep 8 12:24 tutorial3 drwx------ 16 weiminma sn 512 Sep 3 16:59 working_directory Then change the permissions for group and other to read and execute on the subdirectory "tutorial3": {cs1:~} chmod 755 tutorial3 {cs1:~} ls -l total 176 drwx------ 4 weiminma sn 1024 Jan 19 2008 aos drwxr-xr-x 2 weiminma cs 512 Sep 8 12:24 tutorial3 drwx------ 16 weiminma sn 512 Sep 3 16:59 working_directory The commands that create the above three directories and eight files with above permissions are as follows. But first, we want to copy the directories and testfiles using the following commands: {cs1:~} cd tutorial3 {cs1:~/tutorial3} {cs1:~/tutorial3} cp -pr ~weiminma/course_related/TA_S08/CS5375/tutorials/Tutorial3/testdir1 . {cs1:~/tutorial3} cp -pr ~weiminma/course_related/TA_S08/CS5375/tutorials/Tutorial3/testdir2 . {cs1:~/tutorial3} cp -pr
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

Tutorial 3 - Tutorial 3 In this tutorial, we are going to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online