Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-05-2006, 02:53 AM
|
#1
|
Member
Registered: May 2006
Posts: 93
Rep:
|
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?
|
|
|
06-05-2006, 03:29 AM
|
#2
|
Member
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430
Rep:
|
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
|
|
|
06-05-2006, 03:53 AM
|
#3
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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.
|
|
|
06-05-2006, 04:17 AM
|
#4
|
Member
Registered: May 2006
Posts: 93
Original Poster
Rep:
|
Thx for the replies.
@gbonvehi
And which assignment has the file /etc/group?
|
|
|
06-05-2006, 04:55 AM
|
#5
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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.
|
|
|
06-05-2006, 05:33 AM
|
#6
|
Member
Registered: May 2006
Posts: 93
Original Poster
Rep:
|
Thank you for this info.
|
|
|
All times are GMT -5. The time now is 11:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|