Fedora 12
Sponsored Link

NISクライアントとしての設定2010/06/10

  NISクライアントとなるシステムの設定をしてやります。
[root@www ~]#
vi /etc/sysconfig/network


NETWORKING=yes
HOSTNAME=www.srv.world
NISDOMAIN=srv.world
# 最終行へ追記


[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
# 変更


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


# /etc/yp.conf - ypbind configuration file
# 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.
#
# 最終行へ以下追記

domain srv.world server master.srv.world


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


passwd:
files
nis
# 33行目:追記

shadow:
files
nis

group:
files
nis


[root@www ~]#
chkconfig ypbind on

[root@www ~]#
chkconfig rpcbind on

[root@www ~]#
shutdown -r now


www login:
fedora
# NISに登録したユーザー名

Password:
[fedora@www ~]$
# ログインできた

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

fedora:x:501:501::/home/fedora:/bin/bash
nfsnobody:x:4294967294:496:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
[fedora@www ~]$
# パスワード変更

Changing NIS account information for fedora on master.srv.world.
Please enter old password:
# 現在のパスワード

Changing NIS password for fedora on master.srv.world.
Please enter new password:
# 新パスワード

Please retype new password:

The NIS password has been changed on master.srv.world.
関連コンテンツ