Next task was about permissions, so on server 2 create a shared group data sales and ensure
that Chisa is the owner of that directory. Owner and group sales should have permissions
to access the directory and read and write files and other users should have no permissions
at all. And ensure that any new file that is created in this directory is group owned
by the group sales automatically and can only be deleted by Chisa as well as the user
that created the file. Okay, so let's check it out. Now let's start with the easy part
mkdir minus p data sales and chown Chisa colon sales on data sales. Now I'm going in the
data directory and I'm using ls minus l and there we can see the ownership. So now we
need to make sure that we have the appropriate permissions. We also need some special permissions.
So owner and group should have permissions to access this directory and read and write
files. That means 7 7 and 0 for others because it specifies that other users should have
no permissions at all. Then ensure that a new file will be group owned by the group
sales and the files can only be deleted by the owner that is set group ID and sticky
bit. So the mode that we need is 3 7 7 0 on sales and that will do it. Let's finish with
an ls minus l and there we can see that the mode is set correctly and this is really all
that needed to be done for this task.