LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2006, 02:53 AM   #1
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Rep: Reputation: 15
New User will not be listed in /etc/group


Aloha!

I just added a new user with adduser. I had chosen the default group users.
I tested the new account (logged in & out) ..well

But why is the new user not listet behind users: in the /etc/group file?
 
Old 06-05-2006, 03:29 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Type
id username

Check the groupid of that user.
See if that gid is available in /etc/group

Maybe you have added the user to a previously existing group.

If yes,use
usermod
command to change the group of that user.

Zulfi
 
Old 06-05-2006, 03:53 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
The main group of the user is defined in /etc/passwd

PS: You may wonder why your user is by default in some other groups too, those are defined in /etc/login.defs

Last edited by gbonvehi; 06-05-2006 at 03:55 AM.
 
Old 06-05-2006, 04:17 AM   #4
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
Thx for the replies.

@gbonvehi
And which assignment has the file /etc/group?
 
Old 06-05-2006, 04:55 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
It defines the groups and the users that belongs to them. As you know now, not necessary all users of the groups are listed here because they may be defined in /etc/passwd (this is only the main group, for others you need to assing them in /etc/group) and /etc/login.defs which sets the default groups for users login in a console.
If you need to include a user in a group, edit /etc/group.
 
Old 06-05-2006, 05:33 AM   #6
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
Thank you for this info.
 
  


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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
Solaris 9: group won't be listed xpucto Solaris / OpenSolaris 10 02-09-2006 06:51 AM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM
Listed partition in cfdisk, but not listed in /dev? Erik_the_Red Linux - Newbie 7 08-06-2005 12:44 AM
User listed as logged on, even though he's not fishsponge Linux - Security 4 07-19-2004 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:40 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