[olug] user management

Noel Leistad noel at metc.net
Mon Dec 12 15:58:35 UTC 2005


Agree w/ Mike, which distro??

MY FC4 and RHEL do the individual groupadd like Mike says. Don't have 
GROUPS= statement. Actually tried adding, added user, no effect... huh??

useradd from command line??  if yes, `which useradd` and `file 
useradd`?? Is there possibly a wrapper w/ command line options messing 
you up??

Noel

Jake Churchill wrote:

> When adding users using 'useradd' it pulls the default information 
> from the /etc/default/useradd file.  Mine is as follows:
>
> GROUP=100
> HOME=/home
> INACTIVE=-1
> EXPIRE=
> SHELL=/bin/bash
> SKEL=/etc/skel
> GROUPS=video,dialout
>
> My issue is that when I create a user, it adds them with the default 
> group as users, which is GID 100.  What do I need to change to ensure 
> that when I add a user, it specifies them with the group that is equal 
> to their user name.  For example, user john needs to be added and his 
> primary group must be john, rather than users.  Is there a way to 
> alter this file so that it does that and so that it automatically sets 
> the home directory to /home/john.
> I'm trying to figure out how to do this dynamically rather than 
> specify everything manually.
>
> thanks
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>




More information about the OLUG mailing list