LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2015, 05:19 PM   #1
doctore
LQ Newbie
 
Registered: Apr 2015
Distribution: CentOS 7
Posts: 17

Rep: Reputation: Disabled
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?
 
Old 04-16-2015, 05:22 PM   #2
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
what distro are you using? is it centos7?

Last edited by sigint-ninja; 04-16-2015 at 05:42 PM.
 
Old 04-16-2015, 05:25 PM   #3
doctore
LQ Newbie
 
Registered: Apr 2015
Distribution: CentOS 7
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.

Last edited by doctore; 04-16-2015 at 05:30 PM.
 
Old 04-16-2015, 06:37 PM   #4
Lnthink
Member
 
Registered: May 2010
Location: Lafayette, LA
Distribution: Ubuntu, RH, Fedora
Posts: 44

Rep: Reputation: 11
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
 
Old 04-16-2015, 11:16 PM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by Lnthink View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about groups JosephS Slackware 11 08-06-2007 11:07 PM
Basic question about groups celejar Linux - General 2 07-07-2005 09:25 AM
Simple groups question scottrell Linux - General 1 12-02-2004 03:35 PM
listing groups question?? samills70 Red Hat 1 06-11-2004 12:59 PM
Quick users/groups question Nico Linux - General 2 12-09-2003 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration