File should only be accessible by the creator of it help

Hi!

So i got a problem i cant figure out how to solve, we got some assignments from school and i need some help with this one.

In this example i am talking about the temp folder, and this is what i have to do to clear the assignment.

"All files created in this directory should only be accessible by the
user who created the file, and no one else. A user who creates a
file must get modify permissions for that file, but no other users
should be able to even read it. For directories, only the user who
created it should have access to it. All other users should be
denied to even list the contents of that directory.
"

Anyone can help me with this one?
 
Back
Top