ITPub博客

首页 > Linux操作系统 > Linux操作系统 > nis

nis

原创 Linux操作系统 作者:ad007520 时间:2010-09-04 23:21:57 0 删除 编辑
nis
用于集中管理用户账号
nis服务分为nis服务器 和nis客户机的角色
用户登录任何一台nis客户机都会从nis服务器进行登录认证
部署基本步骤
服务器端
安装软件包
rpm -ivh ypserv-2.19-3.i386.rpm
建立服务器中的nis域名
[root@rhb Server]# nisdomainname
(none)
[root@rhb Server]# nisdomainname doteng--创建域名  即时生效 服务器重启就失效
[root@rhb Server]# nisdomainname
doteng
永久生效
/etc/rc.d/rc.local
添加
/bin/nisdomainname --会自动获取nisdomail
/etc/sysconfig/network
添加NISDOMAIL=doteng
设置ypserv服务的配置文件--yellow page server
---------
构建nis数据库
新增用户后需重新执行下面命令
/usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS
servers.  rhb is in the list of NIS server hosts.  Please continue to add
the names for the other hosts, one per line.  When you are done with the
list, type a .
        next host to add:  rhb
        next host to add:  --ctrl+d
The current list of NIS servers looks like this:
启动nis服务器
service ypserv start
客户机
authconfig-tui
选择 use nis
输入服务器的domain 和ip
ok......
查看nisdomainname是否显示主机的nisdomainname
尝试登录服务器上登记的用户--这个用户在本地passwd没有记录

su - username
警告访问不到Home目录
解决:
服务器端启用nfs服务
/etc/exports
添加共享目录
客户机 挂载
mount -t nfs  host:/home目录  /home 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21993926/viewspace-672611/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: samba
下一篇: 编译安装vsftp
请登录后发表评论 登录
全部评论

注册时间:2009-06-28

  • 博文量
    137
  • 访问量
    287973