In: Computer Science
Explain the permissions for the following files:
1 drwx------ 6 monette staff 4096 Nov 18 2013 twelve
2 -rw------- 1 kliu student 2495 Sep 10 2013 who.txt
a) What type of file is it? b) Who is the owner? c) What is the group name? d) For each entry outline the permission granted to all type of users (owner, group, others)
(Ans)
1. drwx------ 6 monette staff 4096 Nov 18 2013 twelve
(a)The first part drwx in this the "d" denotes that the type of file is "directory" and the name of directory is twelve.
(b) The owner of the directory is monette
(c) group name is staff
(d)
in this for Owner(monette) the permissions granted are drwx meaning read ,write and execute.
in this for Group(staff) the permissions granted are none denoted by --- meaning no permission is granted to group.
in this for others the permissions granted are none denoted by --- meaning no permission is granted to others.
2. -rw------- 1 kliu student 2495 Sep 10 2013 who.txt
(a)The first part -rw in this the "-" denotes that the it is a file and the name of file is "who.txt".
(b) The owner of the directory is kilu
(c) The group name is student
(d)
in this for Owner(kilu) the permissions granted are -rw- meaning read and write.
in this for Group(student) the permissions granted are none denoted by --- meaning no permission is granted to group.
in this for others the permissions granted are none denoted by --- meaning no permission is granted to others.