/etc/default/useradd defines what default values will be used when
adding a user. If you want every user to be in the groups 'dialout,
uucp, video, audio', then evidently, you should first create these
groups. If you don't want these groups assigned by default, simply
remove them from the file. FWIIW, none of my systems have a GROUPS
definition in /etc/default/useradd.
Since noone is using the pncerts group at the moment (there are no user
ids following the last colon), let's start from a clean situation:
# userdel rrao
# groupdel pncerts
# groupadd -g 1001 pncerts
# useradd -m -d /home/rrao -s /bin/bash -g pncerts -u 1011 rrao
Kind regards,
Herta
unix syzadmin wrote:
pncerts group exists.
bngddem3:~ # tail -f /etc/group
haclient:!:90:
radiusd:!:101:
quagga:!:102:
vscan:!:103:
nobody:x:65533:
nogroup:x:65534:nobody
users:x:100:jsingh,pmirji,vijay,venkat,pmallick,grajashe,sgummara
dump:!:104:
dba::1000:oracle
pncerts:!:1001:
I am able to create a user (though it throws some errors) with the following
command (without -g pncerts option).
bngddem3:~ # useradd -m -d /home/rrao -s /bin/bash rrao
useradd: Unknown group `dialout'.
useradd: Unknown group `uucp'.
useradd: Unknown group `video'.
useradd: Unknown group `audio'.
However while changing the password I get the following error message:
bngddem3:~ # passwd rrao
Changing password for rrao.
passwd: User not known to the underlying authentication module
bngddem3:~ #
I could get the following from the logs
Apr 7 20:33:30 bngddem3 useradd: new user: name=rrao, uid=1011, gid=100,
home=/home/rrao, shell=/bin/bash
Apr 7 20:36:04 bngddem3 passwd[31183]: User root: User not known to the
underlying authentication module
Also the contents of /etc/default/useradd is
bngddem3:~ # more /etc/default/useradd
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
GROUPS=dialout,uucp,video,audio
Please suggest.
Thanks & Regards,
-GnanaShekar-
On 4/3/06, Herta Van den Eynde <herta.vandeneynde@xxxxxxxxxxxxxx> wrote:
Looks like group pncerts does not exist. You can create it with a
command such as this:
# groupadd pncerts
Not sure why it would also want the other groups, though. What's the
content of /etc/default/useradd ?
Perhaps you can work past the problem if you first create the group
using a specific gid:
# groupadd -g 412 pncerts
possibly followed by a useradd using a specific uid:
# useradd -m -d /home/rrao -s /bin/bash -g pncerts -u 412 rrao
(replace 412 by an used gid and uid)
Kind regards,
Herta
unix syzadmin wrote:
Hi,
I am getting the following error for creating a user. Please suggest.
bngddem3:~ # useradd -m -d /home/rrao -s /bin/bash -g pncerts rrao
useradd: Unknown group `dialout'.
useradd: Unknown group `uucp'.
useradd: Unknown group `video'.
useradd: Unknown group `audio'.
useradd: Unknown group `pncerts'.
Thanks & Regards,
-GnanaShekar-
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
Herta Van den Eynde -=- Toledo system management
K.U. Leuven - Ludit -=- phone: +32 (0)16 322 166
-=- 50°51'27" N 004°40'39" E
"Life on Earth may be expensive,
but it comes with a free ride around the Sun."
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list