Nfs-config () {#服务端配置nfs, #先关闭防火墙或开放端口vi /etc/servicesmountd 1011/tcp #rpc .mountd mountd 1011/udp #rpc .mountd rquotad 1012/tcp #rpc. Rquotad rquotad 1012/udp #rpc .rquotadvi /etc/sysconfig/iptables#portmap -a input -p tcp --dport 111 -j accept -a input -p udp --dport 111 -j ACCEPT #nfsd -a input -p tcp --dport 2049 -j accept -a input -p udp --dport 2049 -j accept # Mountd -a input -p tcp --dport 1011 -j accept -a INPUT -p udp --dport 1011 -j ACCEPT #rquotad -a INPUT -p tcp --dport 1012 -j ACCEPT -A INPUT -p Udp --dport 1012 -j accept #rpc. statd -a input -p tcp --dport 32768 -j accept -a input -p udp --dport 32768 -j acceptyum -y install nfs-utils rpcbindmkdir /ldapdir/users #创建共享目录vi /etc/exports/ ldapdir/users * (Rw,sync) #/usr/local/test/ 192.168.1.226 (Rw,no_root_squash,no_all_squash,sync) exportfs -r #使配置生效service rpcbind startservice nfs startchkconfig rpcbind onchkconfig nfs on}
This article is OPENLDAP Server configuration NFS Share for LDAP users to mount home directories
2016.10.24
This article is from the "Potato It" blog, be sure to keep this source http://malin314.blog.51cto.com/7206614/1864983
OpenLDAP Server configuration NFS Share, LDAP user Mount home Directory