Operating System - Linux
1824635 Members
4268 Online
109672 Solutions
New Discussion юеВ

useradd: Unknown group `dialout'.

 
GnanaShekar
Regular Advisor

useradd: Unknown group `dialout'.

Hi,

I am getting the following error while creating a local unix user account. 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'.


bngddem3:~ # more /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 3

Thanks & Regards,
-Gnanashekar-
8 REPLIES 8
Sergejs Svitnevs
Honored Contributor

Re: useradd: Unknown group `dialout'.

Does the group "pncerts" exist?
# grep pncerts /etc/group

If no you should add new group
# groupadd pncerts
and then add new user using your command useradd ...

Regards
GnanaShekar
Regular Advisor

Re: useradd: Unknown group `dialout'.

Hi,

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:

Also, I am getting the error message even if I donot specify the "pncerts" group in the useradd command.

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'.

Please suggest,
Thanks & Regards,
-GnanaShekar-
Sergejs Svitnevs
Honored Contributor

Re: useradd: Unknown group `dialout'.

Check out "/etc/default/useradd" file also and remove the groups that do not exist.
GnanaShekar
Regular Advisor

Re: useradd: Unknown group `dialout'.

Hi,

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-

Stuart Browne
Honored Contributor

Re: useradd: Unknown group `dialout'.

As Sergejs said, remove the unwanted groups from the 'GROUPS' line in '/etc/defaults/useradd'.

This will stop 'useradd' trying to add the groups automatically when you add a new user, and stop the error from occuring.
One long-haired git at your service...
GnanaShekar
Regular Advisor

Re: useradd: Unknown group `dialout'.

Hi,

I have removed the "GROUPS" from /etc/default/useradd.

now I am able to create user:

bngddem3:/etc # useradd -m -g pncerts tmp3
bngddem3:/etc # passwd tmp3

gut getting the following error:

passwd: error while loading shared libraries: libuser.so.1: cannot open shared object file: No such file or directory

Please suggest,
Thanks & Regards,
-GnanaShekar-
Stuart Browne
Honored Contributor

Re: useradd: Unknown group `dialout'.

Well the change you made shouldn't have any affect on the 'passwd' command, so what else have you done recently?

It looks like one of the libraries has dissapeared now.
One long-haired git at your service...
GnanaShekar
Regular Advisor

Re: useradd: Unknown group `dialout'.

Hi,

From the e-mail trace u can see that I was unable to change password earlier also.

bngddem3:~ # passwd rrao
Changing password for rrao.
passwd: User not known to the underlying authentication module
bngddem3:~ #

I found that the nsswitch.conf file was empty. I later on copied this file from a similar system.

now I am getting this error:

bngddem3:/etc # passwd tmp2
passwd: error while loading shared libraries: libuser.so.1: cannot open shared object file: No such file or directory

Please suggest,
Thanks & Regards,
-GnanaShekar-