QUESTION 5 What is the numeric or Octal version of the following permissions for
ID: 3851260 • Letter: Q
Question
QUESTION 5
What is the numeric or Octal version of the following permissions for a file? -rwx r-- r--
Or, put a different way: u=rwx,g=r,o=r
744
655
755
311
QUESTION 6
You want to change the permissions on a directory named public_files so that everyone else (the "other" category of users) has the ability to go into the directory and read files, but not write to the directory.
Which command would do that for you?
chmod o=rx public_files
chmod ugo+ public_files
chmod go=r public_files
chmod 777 public_files
QUESTION 7
You want to remove write permissions for everyone including yourself on a file named "my-homework.txt"
Which command would do that for you?
chmod a-w my-homework.txt
umask 755 my-homework.txt
chmod o-w my-homework.txt
rm -w my-homework.txt
QUESTION 8
What piece of information do you need to know in order to use the su command?
a.The username of one of the administrator accounts
The password for the root account
The password for the user you are trying to become
The index number for an administrative user in the user account database
QUESTION 9
A file named "homework" had the following permissions: -rwxr--r--
Which command could have been typed to change the permissions to this: --wx-w---x
chmod 465 homework
chmod 321 homework
chomd g-r homework
chmod a-r homework
QUESTION 10
Why migh you use sudo instead of su?
Because sudo always asks for confirmation before executing a command, while su does not.
Because sudo allows you to use your own password to quickly run a task with administrative privilges, you are less tempted to endanger your system by running as root all the time.
Because sudo can make you a sandwich.
Because su is old and usually not present on Unix.
a.744
b.655
c.755
d.311
Explanation / Answer
QUESTION 5
Answer : a that is 744
taking r=4, w=2, x=1.
rwx r—r = 4+2+1 4 4 = 744
QUESTION 6
Answer : a that is chmod o=rx public_files
QUESTION 7
Answer : a that is chmod a-w my-homework.txt
Removing all write privileges for every one
QUESTION 8
Answer : C
QUESTION 9
Answer : C that is chomd g-r homework
g indicates group
-r indicates remove read access
QUESTION 10
Answer : B