Sample Header Ad - 728x90

remove user access from /tmp directory

0 votes
1 answer
1204 views
Is it possible to remove access of /tmp directory for a particular user, i.e user should not be able to even read /tmp directory ? I know tmp directory has 1777 permission and let every user to create files , but restrict modification to user's own files. I am unable to find any way to do so. Usecase: One set of users should be able to do whatever they want but other set of user should not be able to check what other set of users are creating. One solution is to create a directory and set permission to allow only set of users, but then all users need to edit there script/program to use this particular directory instead. Is there any way like privatetmp via systemd, but for users instead of service ? I mean setup a tmp directory for the user without user knowing about it, is it possible ?
Asked by mirthybrink (717 rep)
May 11, 2020, 03:06 AM
Last activity: May 11, 2020, 08:35 AM