M01:
Introduction to Operating Systems |
TU1: Installing, configuring and exploiting
a computer system |
ASIX1 |
Practical Exercise 7: setuid bit. ACL |
9-12-13 |
Practical
Exercise 7: The setuid bit. ACL(Access Control Lists)
GENERAL CONDITIONS
1-
Deadline: 26-01-2014.
2-
Send your report as a PDF file attached to an e-mail with the
following specifications:
a) E-mail
address: cf(at)collados.org or jordi.binefa(at)fje.edu
depending who is your teacher
b)
File Name:
b.1) ASIX1
(Catalan): asix1_surname_name_m01tu01pr7.pdf
b.2) DAW1 (English): daw1_surname_name_m01tu01pr7.pdf
c) Subject:
c.1) ASIX1 (Catalan): asix1_surname_name_m01tu01pr7
c.2) DAW1
(English): daw1_surname_name_m01tu01pr7
3- Make this report individually.
4-
Left, right, top and bottom margins: 2cm.
5-
Character format: a) Font:Times New Roman (or Liberation Serif), b)
Size: 10, c) Questions typeface: Bold, d) Answers typeface: Regular
6-
Page numbering on footer bar
The setuid bit. ACL (Access Control Lists): DOCUMENTATION
1- Introductionsetuid
permission set on a directory is ignored on Linux systems.3.4- setfacl -x
a) Description: The
-x
option removes
rules in a file or folder's ACL.
b) Synopsis: setfacl
-x ugo:user_or_group_name file_or_folder_name
c) Examples:
setfacl
-x u:student04
script00.sh => Removes a rule that gives student04 permission to access the files script00.sh.
setfacl
-x g:sysop script00.sh => Removes a rule that gives sysop permission to access the files script00.sh.
setfacl
-x u:student04 folder00 => Removes
a rule that gives student04
permission to access the folder foldert00.
setfacl
-x u:student06:5 script00.sh folder00 =>
Removes
a rule that gives student06
permission to access the folder folder00 and the file script00.sh.
d) Recursive option -R for folders. Example: setfacl
-R -x u:student04 folder00 => Removes a rule that
gives student04 permission
to access the folder foldert00, and every file and folder in folder00.
3.5- setfacl -b
a) Description: The
-b option removes all ACL rules and
the ACL itself from the folder o file you specify.
b) Synopsis: setfacl -b
file_or_folder_name
c) Examples:
setfacl -b script00.sh
=> Removes all rules, and the ACL itself,
from the file script00.sh. Now, the ls -l command will not display a
plus sign (+) following the permissions.
setfacl -b folder00 => Removes all rules, and the ACL itself,
from the folder folder00.
d) Recursive option -R for folders. Example: setfacl
-R -b folder00 => Removes all rules,
and the ACL itself,
from the folder foldert00.