I found that a directory with following ls
output in my system:
drwxr-xr-x 5 username root 4096 Jan 14 2015 DIRNAME
It rose a question for me: Is there any restriction between files owner and group? I mean that each user in the system belongs to predefined group(s). Is it possible to assign a "group" to a file/folder that the file user (owner) does not belong to?
Certainly. For example:
As you can see, neither
root
, normuru
, are members ofcrontab
, yet the crontab files' group owner iscrontab
.None at all1.
1Well, there are restrictions on each individually: the UIDs and GIDs have to be 32-bit integers (IIRC), or the username and group names must exist:
But, no, no relation between owner and group.