LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6569|回复: 5

Nis Nfs Autofs结合试验步骤

[复制链接]
发表于 2005-6-14 11:27:04 | 显示全部楼层 |阅读模式
1、配置nis,nfs服务器
(1)设定nisdomain
添加/etc/sysconfig/network
NISDOMAIN=cluster
并且保证和/etc/hosts设定主机名一致
HOSTNAME=linux1
ip地址:10.1.1.187
(2)修改/var/yp/Makefile决定需要共享的数据
passwd,group..
(3)chkconfig portmap on.
chkconfig ypserv on
chkconfig yppasswdd on
service portmap start
service ypserv start
service yppasswdd start
service iptables stop
/etc/hosts.allow /etc/hosts.deny为空
(4)mkdir /rhome
   useradd -d /rhome/sean sean
  passwd sean
(5)/usr/lib/yp/ypinit -m建立并安装nis数据库
service ypserv restart
service yppasswdd restart
(6)vi /etc/exports
/rhome  10.1.1.0/255.255.255.0(rw,sync)
service nfs restart
chkconfig nfs on
exportfs -r
exportfs -v
showmount -e localhost
2、设定nis客户端,利用autofs自动挂接nis主机家目录
1、chkconfig portmap on
service portmap start
利用authconfig加入cluser域
2、mkdir /rhome
vi /etc/auto.master
/rhome /etc/auto.misc  --timeout=60
vi /etc/auto.misc
*             -ro,soft,intr                 linux1:/rhome/&
service autofs start
3、用sean登录nis客户端
login:sean
password:***
pwd
/rhome/sean
 楼主| 发表于 2005-6-14 11:31:59 | 显示全部楼层
kevin,看看有问题吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-14 15:42:39 | 显示全部楼层
不好意思,刚才才看到这个问题以前详细讨论过,在这里献丑了
http://www.linuxsir.cn/bbs/showthread.php?t=182417
回复 支持 反对

使用道具 举报

发表于 2007-11-21 17:11:56 | 显示全部楼层
anyway, it is helpful to me! thanks.
回复 支持 反对

使用道具 举报

发表于 2007-11-21 22:28:29 | 显示全部楼层
现在还是有个问题没解决:
以前autofs,nis好好用的,前两天重起了一次服务器后,发现autofs不能用了,mount -l显示正常,就是不能进入mount好的目录.
/var/log/messages中服务都启动了,包括automount, yp,nfs等等.
因为服务器不能上网,故log信息不好贴在这里.
有人能帮忙吗?先谢谢了.
回复 支持 反对

使用道具 举报

发表于 2008-9-25 12:39:50 | 显示全部楼层
if the nisuserx's home directory is /rhome/deskx/nisuserx, where x is your desk number.
How to do is?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表