I want to know how I can make a file in /opt/
, that will be owned by 2 users and 3 groups, and others should not able to access it.
Asked
Active
Viewed 356 times
-1

ctrl-alt-delor
- 27,993
1 Answers
1
ACL is another great way for access control.
In my opinion you can include your 2 users to a particular group and grant chmod 770
to that /opt
directory, where 0 means no privileges to others.

valiano
- 649
-
While that's a great suggestion, it's not an answer. A file in Linux can't have two owners. – tink Dec 29 '18 at 18:56
setfacl
). see https://unix.stackexchange.com/q/101263/4778 – ctrl-alt-delor Dec 29 '18 at 17:58