Fedora 10
Sponsored Link

Configure NIS Client
2008/11/27
  Configure on NIS clients in order to share users' accounts.
[root@www ~]#
vi /etc/sysconfig/network


NETWORKING=yes
HOSTNAME=www.srv.world
GATEWAY=192.168.0.1
NISDOMAIN=srv.world
# add the line


[root@www ~]#
vi /etc/sysconfig/authconfig


USEWINBINDAUTH=no
USEKERBEROS=no
USESYSNETAUTH=no
FORCESMARTCARD=no
USESMBAUTH=no
USESMARTCARD=no
USELDAPAUTH=no
USELOCAUTHORIZE=no
USEWINBIND=no
USESHADOW=yes
USEDB=no
USEMD5=yes
USEPASSWDQC=no
USELDAP=no
USEHESIOD=no
USECRACKLIB=yes
USENIS=
yes
# change


[root@www ~]#
vi /etc/yp.conf


# Valid entries are
#
# domain NISDOMAIN server HOSTNAME
#Use server HOSTNAME for the domain NISDOMAIN.
#
# domain NISDOMAIN broadcast
#Use broadcast on the local net for domain NISDOMAIN
#
# domain NISDOMAIN slp
#Query local SLP server for ypserver supporting NISDOMAIN
#
# ypserver HOSTNAME
#Use server HOSTNAME for the local domain. The
#IP-address of server must be listed in /etc/hosts.
#
# broadcast
#If no server for the default domain is specified or
#none of them is rechable, try a broadcast call to
#find a server.
#
# add the line

domain srv.world server nfs.srv.world


[root@www ~]#
vi /etc/nsswitch.conf


passwd:
files
nis
# line 33: add

shadow:
files
nis

group:
files
nis


[root@www ~]#
chkconfig ypbind on

[root@www ~]#
chkconfig rpcbind on

[root@www ~]#
shutdown -r now


www login:
fedora
# a user on NIS

Password:
[fedora@www ~]$
# logined

[fedora@www ~]$
nfs.srv.world
[fedora@www ~]$
ypcat passwd

fedora:x:500:500::/home/fedora:/bin/bash
[fedora@www ~]$
Changing NIS account information for fedora on nfs.srv.world.
Please enter old password:
Changing NIS password for fedora on nfs.srv.world.
Please enter new password:
Please retype new password:

The NIS password has been changed on nfs.srv.world.
Matched Content