Chinaunix

标题: 删除NIS [打印本页]

作者: geriwolf    时间: 2008-12-09 10:10
标题: 删除NIS

1)停止NIS服务守护进程
            # /usr/lib/netsvc/yp/ypsttop

2)删除NIS域名
            # domainname “”
            # rm /etc/defaultdomain

3)更换/etc/nsswitch.conf文件
            # cp /etc/nsswitch.files /etc/nsswitch.conf

4)删除文件及目录
    master server:/nis、/var/yp/domainname、/var/yp/*.time、/var/yp/binding/*
    slave server:/var/yp/domainname、/var/yp/*.time、/var/yp/binding/*
    client:/var/yp/binding/*
# rm /nis
            # rm -r /var/yp/domainname
            # rm /var/yp/*.time
            # rm /var/yp/binding/*

5)编辑/var/yp/aliases文件,删除包含NIS域名的一行

6)编辑/etc/hosts文件,删除配置NIS时添加的主机相关信息

7)重启
            # sync
            # reboot



配置NIS的步骤见
http://blog.chinaunix.net/u2/80598/showart_1671156.html


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/80598/showart_1687152.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2