- 论坛徽章:
- 0
|
环境中已经把NIS和kerberos都搭建好,测试环境如下
server为192.168.0.254,hostname server1.example.com
client为192.168.0.1,hostname stationx.example.com
现在想在server上建立一用户david,然后通过kerberos做身份验证,在client上用david一登陆就直接登陆到自己家目录,我是这样配置的:
[root@server1 ~]vim /etc/sysconfig/nfs
SECURE_NFS=”yes”
[root@server1 ~]useradd -d /rhome david
[root@server1 ~]make -C /var/yp/
[root@server1 ~]cat /etc/exports
/rhome gss/krb5i(rw,sync,fsid=0,crossmnt)
[root@server1 ~]kadmin
kadmin.local:ank -pw 123456 david
kadmin.local:ank -e des-cbc-md5:normal -randkey nfs/server1.example.com
kadmin.local:ktadd -e des-cbc-md5:normal nfs/server1.example.com
q
[root@server1 ~]service nfs restart;chkconfig nfs on
[root@server1 ~]service rpcidmapd restart;chkconfig rpcidmapd on
[root@stationx ~]kadmin
kadmin.local:ank -e des-cbc-md5:normal -randkey nfs/stationx.example.com
kadmin.local:ktadd -e des-cbc-md5:normal nfs/stationx.example.com
q
[root@stationx ~]vim /etc/sysconfig/nfs
SECURE=”yes”
[root@stationx ~]chkconfig rpcgssd on ;service rpcgssd restart
[root@stationx ~]chkconfig rpcidmapd on ; service rpcidmapd restart
[root@stationx ~]vim /etc/fstab
server1.example.com:/ /rhome nfs4 sec=krb5i 0 0
[root@stationx ~]mkdir /rhome
[root@stationx ~]mount -a
FS-Cache:Loaded
mount.nfs4 ermission denied
请问我应该怎么排错?我的目的就是类似windows下的AD,在客户端上没有用户的数据库,但可以在客户端登陆并在自己的家目录里任意操作,同时存在服务器上,等于是把服务器上的目录给挂载过来。谢谢帮忙! |
|