LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2023, 09:48 AM   #1
reddyrohith13
LQ Newbie
 
Registered: Jul 2023
Posts: 1

Rep: Reputation: 0
Question unable to see users added under primary groups of other users


Hello linux geeks,

when we create a users say spiderman and hulk by using
sudo useradd spiderman
sudo useradd hulk

by default we can see spiderman and hulk groups got created when we had created spiderman and hulk users

now if i modify hulk primary group from hulk to spiderman by
sudo usermod -g spiderman hulk

why dont we see hulk as user under spiderman group in
/etc/group and if i wanted to see hulk as user under spiderman group how to do that???
 
Old 07-30-2023, 09:59 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
If you log in as hulk and give the groups command, you will see a list of all your groups with spiderman in it.

I don't know the answer to your main question but I can confirm that this happens. My primary group on my Slackware system is users but /etc/group does not show me as a member of this group. It does however show me as a member of various additional groups such as video and plugdev that I have added myself to.
 
  


Reply



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
iw can see one device but not the other; iwconfig can see the other device but not the first RandomTroll Linux - Wireless Networking 2 02-03-2022 07:22 AM
[SOLVED] samba : how to synchronize AD users & groups with Samba users &groups zelycorn Red Hat 5 05-12-2011 09:15 AM
can see other machines, but other machines can't see me with TPC/IP egomez Linux - Networking 8 04-28-2006 01:08 AM
Groups members of other groups bentz Linux - Security 6 06-22-2003 11:23 PM
can't see other machines but they can see each other Silly22 Linux - Networking 1 11-20-2002 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:31 PM.

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