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

1. Using the numeric mode for assigning permissions, what command is used to rem

ID: 3731608 • Letter: 1

Question

1. Using the numeric mode for assigning permissions, what command is used to remove the “read” permission from the “others” group only?                

                        -r--r-xr--   1 sean staff Feb 5 21:22 security

-rw-r-xr-x 1 sean staff Feb 5 21:22 security

-r-xr-xrwx 1 sean staff Feb 5 21:22 security

-rwxr-xr-x 1 sean staff Feb 5 21:22 security

-rw-rwxr-- 1 sean staff Feb 5 21:22 security

2. Using the numeric mode for assigning permissions, what command is used to add both the “execute” and “write” permissions for the “staff” group only?

                        -r-xr--r-x        1 sally staff Feb 7 11:30 marketing

-r-----r-x         1 sally staff Feb 7 11:30 marketing

-rwxr--r--       1 sally staff Feb 7 11:30 marketing

-r--r----x         1 sally staff Feb 7 11:30 marketing

--w-rwxrw-   1 sally staff Feb 7 11:30 marketing

3. Using the numeric mode for assigning permissions, what command is used to add “read,” and “execute,” permissions for the “owner” of the file, the “hr” group?

                        -rw--w-r-x     1 mary hr   15 Feb 5 19:25 payroll

-r-x-w-rwx    1 mary hr   15 Feb 5 19:25 payroll

--w--w-rw-     1 mary hr   15 Feb 5 19:25 payroll

-rw--w-r-x     1 mary hr   15 Feb 5 19:25 payroll

-r--r----x        1 mary hr   15 Feb 5 19:25 payroll

4. Using the numeric mode for assigning permissions, what command is used to remove the execute permissions for the “owner”, “group” and “others” and add the write permission to the group owner?

                        -rwxr-xr--       1 mike mike   0 Feb 4 20:15 quotes

-rwxr--r--       1 mike mike   0 Feb 4 20:15 quotes

-rw-r-xr-x       1 mike mike   0 Feb 4 20:15 quotes

-r-xr--r-x        1 mike mike   0 Feb 4 20:15 quotes

--wxr--r--        1 mike mike   0 Feb 4 20:15 quotes

5. Using the symbolic mode for assigning permissions, what command is used to add the “write” and “execute” permissions to the “others”?

                        -rw-r--r-- 1 john admin 5177 Feb 4 05:46 passwords

6. Using the symbolic mode for assigning permissions, what command is used to remove the “read” permission from the “others,” while keeping all other permission settings in place?                       

                        -r--r-x--x 1 sean staff 2133 Feb 5 21:22 security

7. Using the symbolic mode for assigning permissions, what command is used to add both the “execute” and “write” permissions for the “staff” group only?

                        -r--r--r--   1 sally staff 1271 Feb 7 11:30 marketing

8. Using the symbolic mode for assigning permissions, what command is used to add “read,” “write,” and “execute” permissions for the owner of the file, and the “hr” group, and all other user?

                        -rw-r--r-- 1 mary hr   15 Feb 5 19:25 payroll

9. Using the symbolic mode for assigning permissions, what command is used to remove all permissions for the “owner,” “groups,” and “others”?

                        -rwxr--r-- 1 mike mike          0 Feb 4 20:15 quotes

10. Using the symbolic mode for assigning permissions, what command is used to subtract the “write” and “execute” permissions to the “others,” while keeping the permissions in place for the owner and group.

                        -rw-r--r-- 1 john admin 5177 Feb 4 05:46 passwords

Explanation / Answer

1) To revoke read permissions from other group use below command :

chmod 770 security*

2) To give both execute and write permissions to staff group we will use the below command :

chmod 434 marketing*

3) To give read and execute permission to user and group :

chmod 552 payroll*

4) To remove the execute permissions for the “owner”, “group” and “others” and add the write permission to the group owner :

chmod 200 quotes*

5) To add the “write” and “execute” permissions to the “others” :

chmod 443 passwords

6) To remove the “read” permission from the “others,” while keeping all other permission settings in place :

chmod 451 security

7) To add both the “execute” and “write” permissions for the “staff” group only :

chmod 474 marketing

8) To add “read,” “write,” and “execute” permissions for the owner of the file, and the “hr” group, and all other user :

chmod 777 payroll

9) To remove all permissions for the “owner,” “groups,” and “others” :

chmod 000 quotes

10) To subtract the “write” and “execute” permissions to the “others,” while keeping the permissions in place for the owner and group :

chmod 644 passwords