NISクライアントとしての設定2009/06/14 |
NISクライアントとなるシステムの設定をしてやります。 |
[root@www ~]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=www.srv.world GATEWAY=192.168.0.1 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 dlp.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 ~]$ dlp.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 dlp.srv.world. Please enter old password: # 現在のパスワード Changing NIS password for fedora on dlp.srv.world. Please enter new password: # 新パスワード Please retype new password: The NIS password has been changed on dlp.srv.world. |
Sponsored Link |
|