1. What would the resulting permissions be if the following command were execute
ID: 3546230 • Letter: 1
Question
1. What would the resulting permissions be if the following command were executed? (4 points)
Chmod u=rx,g=x,o= inform
2. In the following table, replace ? by the appropriate chmod value or resulting permission. (each 4 points)
Chmod value Resulting permission
700 rwx --- ---
? r-- --- ---
200 ?
? rw- --- ---
? --x --- ---
000 ?
500 ?
3. There are several commands in the script named inform. What minimum permissions for the script are needed to run the commands by entering its name? (4 points)
4. What minimum permission for a subdirectory do you need to create files in the subdirectory? (4 points)
5. What minimum permissions for the file or directory are needed to do the following successfully? (each 4 points)
(1) cat mydir/myfile
mydir: ________________
myfile: ________________
(2) touch mydir/myfile
mydir: ________________
(3) rm mydir/myfile
mydir: _________
(4) ls
Explanation / Answer
Let me know if you need more help. Thanks
1. What would the resulting permissions be if the following command were executed? (4 points)
Chmod u=rx,g=x,o= inform
Ans: r-x --x ---
2. In the following table, replace ? by the appropriate chmod value or resulting permission. (each 4 points)
Chmod value Resulting permission
700 rwx --- ---
400 r-- --- ---
200 -w- --- ---
600 rw- --- ---
100 --x --- ---
000 --- --- ---
500 r-x --- ---
3. There are several commands in the script named inform. What minimum permissions for the script are needed to run the commands by entering its name? (4 points)
Ans: r-x
4. What minimum permission for a subdirectory do you need to create files in the subdirectory? (4 points)
Ans: -wx
5. What minimum permissions for the file or directory are needed to do the following successfully? (each 4 points)
(1) cat mydir/myfile
mydir: --x
myfile: r--
(2) touch mydir/myfile
mydir: -wx
(3) rm mydir/myfile
mydir: -wx --- ---
(4) ls
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.