nerdexam
Red_Hat

RH202 · Question #40

48: Give Full Permission to owner user and owner group member but no permission to others on /data.

Answers: We can change the permission of file/directory either character symbol method or numeric method. Permission: r-Read w-Write x-Execute Permission Category u- Owner User g- Owner Group o- Others Operators -> Add the Permissions -> Remove the Permissions -> Assigns the Perm

Users, Groups, and Permissions

Question

48: Give Full Permission to owner user and owner group member but no permission to others on /data.

Explanation

Answers: We can change the permission of file/directory either character symbol method or numeric method. Permission: r-Read w-Write x-Execute Permission Category u- Owner User g- Owner Group o- Others Operators -> Add the Permissions -> Remove the Permissions -> Assigns the Permissions Numeric Method: 4 ->Read 2 ->Write 1 ->Execute Total: 7, total for owner user, owner group member and for others : 777

  1. chmod u+rwx /data
  2. chmod g+rwx /data
  3. chmod o-rwx /data or chmod 770 /data
  4. Verify the /data : ls -ld /data
  5. You will get drwxrwx---

Topics

#chmod#octal permissions#file permissions#access control

Community Discussion

No community discussion yet for this question.

Full RH202 Practice