I come to you with my palms up after 2 days of research.
I will try to be as concise and to the point as possible.
-rw-r--r-- 1 johnbeed staff 1040 Dec 10 3:44 SerpAPI.ipynb
The first - of -rw-r--r-- is if it's a directory or file. This a file. The next 3 rw- is the permissions for the user who created the file/dir aka owner. The first name johnbeed is the owner. The next 3 r-- is the permissions for the group. The second name staff is the group name.
I want to understand groups.
My understanding was that a group in the example at the top is staff. From what I read, only one group can have group access at a time. So I thought what if I have two users I want to give group permissions to but don't want either to have access to every other thing in the other group.
So I tried searching for a list of the users in each group.
Doing id staff and groups staff says not valid user. Doing id johnbeed and groups johnbeed gives a list of groups that johnbeed belongs to. Or so I think.
In order to find the opposite (the users that belong to a group, rather than above which is the groups that a user belongs to) I was told to do cat /etc/group and found staff was staff:*:20:root and someone said that that means the only user in my group staff was root. Then I remembered that when I did groups johnbeed it showed I was a member of staff. Which means that can't be.
I'm not sure why it's so difficult to just see the users that belong to each group. For Linux people, isn't this important to be able to see who you are giving group permissions to?
[edit]: I've been down the Google rabbit hole and tried many commands that didn't work out..
THANK YOU!