LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Groups question (https://www.linuxquestions.org/questions/linux-newbie-8/groups-question-4175539936/)

doctore 04-16-2015 05:19 PM

Groups question
 
So, I have created a group and added myself to it.

When I open /etc/group I can see the group and it shows that I am a member, but when I run $ groups - it doesn't show the new group in the list. What could be the issue?

sigint-ninja 04-16-2015 05:22 PM

what distro are you using? is it centos7?

doctore 04-16-2015 05:25 PM

Yes, just groups, but as current user, not su

P.S. Figured I add this - the new group shows when I run groups <myusername> and when I run id <myusername>, just not when I run groups by itself.

Lnthink 04-16-2015 06:37 PM

Possible answer:
You didn't log out and log back in yet - so your current ~process~ hasn't become a group member yet.
Answer: new login shell - logout and log back in.

"Hello IT. Have you tried turning it off and on again?"

https://www.youtube.com/watch?v=p85xwZ_OLX0

Gotta love the IT Crowd

veerain 04-16-2015 11:16 PM

Quote:

Originally Posted by Lnthink (Post 5348617)
Possible answer:
You didn't log out and log back in yet - so your current ~process~ hasn't become a group member yet.
Answer: new login shell - logout and log back in.

"Hello IT. Have you tried turning it off and on again?"

https://www.youtube.com/watch?v=p85xwZ_OLX0

Gotta love the IT Crowd

Yes definitely you have to logout and login again as said.


All times are GMT -5. The time now is 06:02 AM.