So, we need to create a shared group directory structure, data-profs and data-students.
Let's start with that, mkdir minus p, slaves-data, slaves-profs, and slaves-data, slaves-students.
Then we need to ensure that members of the groups have full read and write access to
their directories and others have no permissions at all.
So, cd data, and there I'm going to use chdrp, profs on profs, and chdrp, students on students.
And we need to make sure that members of the group have full read and write access to their
directories and others have no permissions at all.
I would go for chmod 770 on star.
There is nothing that refers to special permissions here, and that is why I'm not doing anything
with the special permissions, and I would advise you do likewise if you have a situation
like that on the exam.
Don't create it if it's not being asked for, because the evaluation script might evaluate
your answer as wrong.
Then use the appropriate command to print a list of files that have the set user ID
permission set.
That would be find, find slash, minus perm slash 4000.
You might want to filter out some error messages as well, and this should give you that list
of files.
And there we can see the files that have set user ID set, and this is all you needed to
do for this lab.