How many group owners can a file have?
Permissions are listed below:
|permission||on a file||on a directory|
|r (read)||read file content (cat)||read directory content (ls)|
Can a directory have 2 owners? In the traditional Unix file permission system that’s not possible: a file has only a single owner. You could create a group containing just the two users that should have access and make that the owning group of the file (and give the desired permissions to that group).
Can a Linux file have multiple groups? Each file can have a list of users and groups that can access it. A person is one user and many groups (groups can only be set by admin/root user). A file is normally one owner user and one group, with ACLs it can be one owner user, plus many other users, plus many groups.
Can you have multiple group owners? No, this is not possible. Each file (and so also directories) can only have one user and one group.