Professional Documents
Culture Documents
Nguyễn Văn Nhẫn B1809272 Chủ Đề: Quyền Trên Hệ Thống Tập Tin
Nguyễn Văn Nhẫn B1809272 Chủ Đề: Quyền Trên Hệ Thống Tập Tin
Mô tả yêu cầu
Hãy trả lời các câu hỏi ở các trang 8, 13, 19, 28, 36, 42 trong file
FilePermission-Exercise.pdf và điền kết quả vào bảng sau
8. Which of the following best explains why a. The owner would like
someone would want the file sample.sh to anyone to be able to
have remove the file.
permissions of rwxrwxr-x? b. The owner would like
anyone to be able to
modify the file.
c. The owner would like
anyone to be able
execute the file as a
script.
d. The owner would like
anyone to be able to
rename the file.
e. None of the above
reasons apply.
10. You have just created the file foo.txt a. chgrp music foo.txt
(with default permissions). You would now b. chmod g-w foo.txt
like members c. chmod o-r foo.txt
of the group music to be able to read (but d. A and B
not modify) the file, and everyone else to e. All of the above
have no access.
What steps must you perform?
5. Which users can list files in the directory a. elvis, einstein, and
physics/? maxwell
b. only einstein
c. all users can
d. elvis, prince, and
blondie
6. Which users can list files in the directory a. elvis, einstein, and
music/? maxwell
b. only root
c. all users can
d. elvis, prince, and
blondie
6. Why would you not expect to see a. Other users could not
someone set a shell's umask to 422? read newly created files
by default.
b. Users could not read
their own newly created
files.
c. Newly created files
with identical group and
other permissions are not
allowed.
d. A legitimate umask
cannot contain digits
higher than 2.