5. In your AFS file space, do the following: -PASTE A SCREEN SHOT OF THESE WORK
ID: 3593647 • Letter: 5
Question
5. In your AFS file space, do the following: -PASTE A SCREEN SHOT OF THESE WORK TO THIS FILE! a. (2pts)Change the permissions on your home directory and the IT101 directory (see in class lab) so that I (UCID swolodkoxo can list and read your files. In your homework WORD document, type the command you used to make this permission change. (2pts)Ia your under the "IT101" directory, make a new directory called "homework2" using mkdir. (It should automatically inherit the permissions from your home directory if you did step 5a first otherwise you will need to change permissions manually on homwork2). In your homework WORD document, type the commands you used to show the afs and UNIX permissions for homework. b. (4pts)Create a short text file containing your name and major. Name the file IT101-HW2.txt and place it in your homework2 directory. It is probably easiest to create the file on your usual computer and then use SSH Secure Shell to transfer the file to AFS. Use notepad or wordpad, not Word, to create the file. c. d. (lpts)TIse pxd to get the absolute path to directory homework: Write the absolute path to directory homework2 into the WORD document you submit for this homework. I will grade this problem by trying to read your file, so double-check that the path is correctExplanation / Answer
Assuming that "IT101" directory is already created.
a. To change permission of your home directory, you open the bash( shell program i.e. command prompt) and run the following:
1. chmod 755 /home/<user>
or, to set permission to all the sub-directories and its content. NOTE: all the files create
2. chmod -R 755 /home/<user>
3. chmod -R 755 /home/<user>/IT101
b. To make a homework2 directory, run the below commands
1. cd IT101
2. mkdir homework2
c. To create a text file, go to "homework2" directory and run the following command
1. cd IT101/homework2/
2. touch "IT101-HW2"
d. to get the absolute path , run the command from within the homework2 directory
1. cd IT101/homework2/
2. pwd
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.