Professional Documents
Culture Documents
rh124 Day06
rh124 Day06
1/4
RH124-Day06
Written by Razib Shahriar Rubence
have the same rights as the owner of the file being executed.
# chmod u+s directory, or
# chmod 4777 directory
From RHEL6 numeric method can not be used to clear any bit. The reason behind changing
this coreutils chmod command can be found in the following discussion forum:
http://lists.gnu.org/archive/html/bug-coreutils/2011-03/msg00154.html
11. Check the permission and ownership information:
# ls -l file/directory
# stat file/directory
LAB Practice:
01. Create three users curly, larry and moe who are members of a group called stooges.
# groupadd stooges
# adduser -G stooges curly
# adduser -G stooges larry
# adduser -G stooges moe
02. Creae a directory called /home/stooges where these three users can work collaboratively on
files.
# mkdir /home/stooges
# chgrp stooges /home/stooges
03. Modify the permissions on this directory so only they can access, create and delete files in
that directory.
# chmod 775 /home/stooges
# stat /home/stooges
04. Files created in this directory should automatically be assigned to a group ownership of
stooges
# chmod g+s /home/stooges
# stat /home/stooges
05. Make sure that only the owner of the file in /home/stooges can delete the file
# chmod o+t /home/stooges
# stat /home/stooges
2/4
RH124-Day06
Written by Razib Shahriar Rubence
3/4
RH124-Day06
Written by Razib Shahriar Rubence
4/4