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

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

a.

744

b.

655

c.

755

d.

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?

a.

chmod o=rx public_files

b.

chmod ugo+ public_files

c.

chmod go=r public_files

d.

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?

a.

chmod a-w my-homework.txt

b.

umask 755 my-homework.txt

c.

chmod o-w my-homework.txt

d.

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

b.

The password for the root account

c.

The password for the user you are trying to become

d.

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

a.

chmod 465 homework

b.

chmod 321 homework

c.

chomd g-r homework

d.

chmod a-r homework

QUESTION 10

Why migh you use sudo instead of su?

a.

Because sudo always asks for confirmation before executing a command, while su does not.

b.

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.

c.

Because sudo can make you a sandwich.

d.

Because su is old and usually not present on Unix.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!