Users and Permissions Confused

Screen Link:

The exercise it is stated that:

Group ownership is the same as user ownership.

However, in the second scenario, it is stated that

Second scenario. User learn owns a file whose permissions are rwxr-xr-x .

these two things contradict each other.


I think maybe they meant that the user name is the same as the group name.

1 Like

Hi @prateek

Yes, this feels like a contradiction. I will log it as a bug. Thank you for letting us know!


There is no contradiction. Why do you think there is one?

We have two different concepts at play. Ownership and permissions. It is possible for a user to own a file and have no permissions over it.

1 Like

Hi @prateek,

I think what the above implies is that as long as a user owns a file, the user’s group also owns that file. Therefore, any user that is a member of that particular group is also seen as an owner of that file and all files owned by that group as well. Therefore, the group permission would apply if the current user is a member of that group but not the owner of the file.
If the user is the owner of the file, then owner permissions are applied and if the user is neither the owner nor a member of the owner’s group then the ‘others’ permission applies.

What this is saying is that as the owner of the file, user permissions would apply when learn handles the file. But for dq’s case, user permissions don’t apply. If dq is a member of learn’s group (which we don’t know) then group permissions would apply for questions 3 & 4, else ‘others’ permission would apply. I think both group and ‘others’ permissions were set to the same thing so that we can arrive at the same correct answers irrespective of whether dq is a member of learn’s group or not.