Tuesday, 15 April 2014

ubuntu - Deny a user access to a group-owned folder without removing him from group? -


I have a group-owned folder in Ubuntu, let's call it finance, that group has 3 users, fin 1, Finn 2, Phoenix These users are those who have access to this folder. How can we deny Fox's access to the folder without removing it from the group?

You can assign a different group to it, FIN1 and FIN2 , but do not FINX , and assign it as a folder in question for that folder and all its contents.

Or if it is too much to remove FINEX from the group, then the main option I see is either ACL and SLINX, either of these places to move on less waste land Would be Both files rely on a system-dependent directory that supports extended file attributes, which it probably does if it supports standard file permissions bits, as you say.

Command the ACL approach to:

  setfacl --recursive -md: u: Phoenix: 0 -mu: finyx: 0 / path / from / directory < / Code> 

I rarely work with ACL, so this may be a bit, though, new files and subdirectories must inherit the same restriction, because The command sets it both in ACL and default ACL.


No comments:

Post a Comment