Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 6 (12 points): Answer each of the following questions assuming the permi

ID: 3588843 • Letter: P

Question

Problem 6 (12 points): Answer each of the following questions assuming the permissions settings string is -rwxr-xr a) Is this a file or a directory? b) Who has the most control in this case: the user, the group, or others? c) Who has both read and execute permission, but doesn't have write permission (can select more than one): the user, the group, or others? d) Who has read permission (can select more than one): the user, the group, or others? e) Who has write permission (can select more than one): the user, the group, or others? f) The primary purpose of permissions/ownership in UNIX is Problem 7 (12 points): Answer the following questions about the chmod command a) Numeric notation uses digits to represent the permission bits to be set, whereas symbolic notation uses b) Using symbolic notation, how would you add read and write permission for the to identify the user type and permissions rou c) Using symbolic notation, how would you set the permission of the user to be read and write, but no execute? d) Using numeric notation, how would you assign the permission string -rwxr-x--x? e) Using numeric notation, how would you assign the permission string fIn Linux, if you have a link to a file rather than the actual file, can you change the permissions of the link using chmod? (hint: look up the Linux man page for chmod)? g) Which Unix command allows you to change the owner of a file?

Explanation / Answer

a)Answer:

This is file permissions.

Explanation:

The permissions are divided into three parts:

The first three characters (rwx) are for owner permissions. The owner of the file, the user "john", can read the file, write (modify) it, and execute it, in case it is executable.

The next three characters (r-x) are for group permissions. Members of the group "staff" can read the file and execute it, in case it is executable.

The last three characters (r--) are for other (world) permissions. These are the permissions for everyone else on the system. Users other than "john" who are not members of the "staff" group can only read the file

b)Answer:

user have most control in this case because all permissions are granted for user.

c)Answer:

group has read and execute permissions but not have write permission.

d)Answer:

The user have more than one read permission.

e)Answer:

The user have write permission

f)Answer:

Linux, like UNIX, is a multi-user system and file permissions are one way the system protects against malicious tampering.

One way to gain entry when you are denied permission is to su - to root, as you learned earlier. This is because whoever knows the root password has complete access.

But switching to the superuser is not always convenient or recommended, since it is easy to make mistakes and alter important configuration files as the superuser.

That means you can specify who is allowed to read the file, write to the file, or (if it is an application instead of a text file) who can execute the file.