[TriLUG] Useradd issues
Jeff Bollinger
jeff01 at email.unc.edu
Thu Feb 20 17:41:15 EST 2003
Has anyone seen the error with RedHat 7.3 where when you first run
'useradd' to create a default user environment it doesn't save the -g
(group) option?
By default, when you run useradd followed by the userid, the a new user
AND a new group are created (usually with the same name). I ran the
following:
useradd -D -g 100 -b /export/home -s /sbin/nologin
and that successfully created /etc/defaults/useradd (though there is also
an identical file called /etc/defaults/useradd- )
However, now when I create a new user account with:
#useradd userid
everything works fine except a new group still gets created, and my new
user does NOT belong to gid 100 (as specified in the above command and in
/etc/defaults/useradd). I can't figure out why everything else works
except for the -g flag. Any ideas?
Thanks as always!
Jeff
More information about the TriLUG
mailing list