#Linux users and groups question (Researched Before-hand)

7 messages · Page 1 of 1 (latest)

thorn pumice
#

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!

torn glenBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

torn glenBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.

thorn pumice
#

!howto ask

torn glenBOT
# thorn pumice !howto ask
How to Ask A Programming Question

Anyone can ask a question in our programming channels.
Following the guide
Writing The Perfect Question
is recommended.

What To Post

State your problem clearly and provide all necessary details:

  • the relevant portion of your code, or all of it
  • the expected output
  • the actual output (or the full error)
    🏆 Gold Standard: Minimal Reproducible Example
Where To Post

Provide the relevant code in the message, and format it nicely with a code block*.
If it's too much for one message, you can upload it:

  • Compiler Explorer for most C/C++ snippets
  • OnlineGDB for interaction, debugging
    Do not post screenshots, let alone photos of your screen!
thorn pumice
#

is this how to bump it?

torn glenBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.