Filesystem permissions
Task 1:
Configure the permissions of /var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that:
The file /var/tmp/fstab is owned by the root user.
The file /var/tmp/fstab belongs to the group root.
The file /var/tmp/fstab should not be executable by anyone.
The user natasha is able to read and write /var/tmp/fstab.
All other users (current or future) have the ability to read /var/tmp/fstab.
Solution:
Task 2:
Copy /etc/fstab
document to /var/TMP
directory. According the following requirements to configure the permission of this documnent. The owner of this document must be root. This document belongs to root group. User mary have read and write permissions for this document. User alice have read and execute permissions for this document. Create user named bob, set uid 1000. Bob have read and write permissions for this document. All users has read permission for this document in the system
Solution:
Task 3:
Make on /archive directory that only the user owner and group owner member can fully access.
Solution:
Task 4:
Copy the file /etc/fstab
to /var/tmp
. Configure the following permissions on /var/tmp/fstab
The file
/var/tmp/fstab
is owned by root user.The file
/var/tmp/fstab
is belongs to the root groupThe file
/var/tmp/fstab
should be executable by anyone.The user harry is able to read and write on
/var/tmp/fstab
The user natasha can neither read nor write on
/var/tmp/fstab
All other users (current or future) have the ability to read
/var/tmp/fstab
Solution:
Task 5:
Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be admin group.
Solution:
Task 6:
Make on data that only user owner and group owner member can fully access.
Solution:
Task 7:
Create a collaborative directory /home/admins with the following charasteristics:
Group ownership of
/home/admins
is adminuserThe directory should be readable, writeable, and accessible to members of adminuser, but not to any other user.
(It is understood that root has access to all files and directories on the system)
Files created in /home/admins automatically have group ownership set to the adminuser group.
Solution:
Task 8:
According to the following requirements to create a local directory /common/admin
This directory has admin group
This directory has read,write, and execute permissions for all admin group members.
Other groups and users don't have any permissions
All the documents or directories created in the
/common/admin
are automatically inherit the admin group.
Solution:
Task 9:
Create a shared directory /home/admins, make it has the following charasteristics:
/home/admins belongs to adminuser
this directory can be read and written by members of group adminuser.
Any files created in /home/admins, group automatically set as adminuser
Solution:
Task 10:
Copy /etc/fstab
to /var/tmp
group name admin, the user1
could read, write and modify it, while user2
without any permission.
Solution:
Task 11:
Create a collaborative directory /mnt/shares
with the following characteristics:
Group ownership of
/mnt/shares
should be sharegrp.The direcory should be readable, writeable and accessible to member of
sharegrp
but not to any other user. (It is understood that root has access to all files and directories on the system)Files created in
/mnt/shares
automatically have group ownership set to thesharegrp
group.
Solution:
Last updated
Was this helpful?