Adding a new NIS account Centos7

Issues related to applications and software problems
Post Reply
goudeuk
Posts: 32
Joined: 2013/09/02 11:46:50
Location: London

Adding a new NIS account Centos7

Post by goudeuk » 2017/07/27 15:56:13

Hello

I've just created a test user on a NIS master server

Code: Select all

useradd test
passwd test
After that I did

[root@prita yp]# make -C /var/yp
make: Entering directory `/var/yp'
gmake[1]: Entering directory `/var/yp/lipsync'
gmake[1]: `ypservers' is up to date.
gmake[1]: Leaving directory `/var/yp/lipsync'
gmake[1]: Entering directory `/var/yp/lipsync'
Updating netid.byname...
Updating shadow.byname... Ignored -> merged with passwd
gmake[1]: Leaving directory `/var/yp/lipsync'
make: Leaving directory `/var/yp'
[/b]

But when I do:

Code: Select all

ypmatch test passwd
I get

Code: Select all

Can't match key test in map passwd.byname. Reason: No such key in map
I am missing something here but I don't know what it is. Could someone please advise me or direct me to a good guide on how to manually add a user account in NIS?

Thank you

Post Reply