LAB:
setup ldap client for your server
server: ldap://sam.expanor.local
base dn: dc=expanor,dc=local
home dir: 192.168.10.120:/home/*
install following packages
pam_krb5
nss-pam-ldapd
1. Set up ldap client
# authconfig-tui
2. Install autofs
# yum install autofs
3. Setup autofs
# vi /etc/auto.master
/home /etc/auto.ruser
wq!
2. define nfs server info
# vi /etc/auto.ruser
* -rw 192.168.10.120:/home/&
Now change something
# vi /etc/auto.master
/export/home /etc/auto.ruser
wq!
[root@sudhir ~]# umount -f /home/ldapuser1
umount.nfs4: /home/ldapuser1: device is busy
[root@sudhir ~]# pwd
/root
[root@sudhir ~]# fuser -cu /home/ldapuser1
/home/ldapuser1: 19600c(ldapuser1)
[root@sudhir ~]# ps -ef | grep 19600
ldapuse+ 19600 19599 0 12:17 pts/6 00:00:00 -bash
root 21647 20536 0 12:51 pts/4 00:00:00 grep --color=auto 19600
[root@sudhir ~]# kill -9 19600
[root@sudhir ~]# fuser -cu /home/ldapuser1
[root@sudhir ~]# umount /home/ldapuser1
[root@sudhir ~]#
setup ldap client for your server
server: ldap://sam.expanor.local
base dn: dc=expanor,dc=local
home dir: 192.168.10.120:/home/*
install following packages
pam_krb5
nss-pam-ldapd
1. Set up ldap client
# authconfig-tui
2. Install autofs
# yum install autofs
3. Setup autofs
# vi /etc/auto.master
/home /etc/auto.ruser
wq!
2. define nfs server info
# vi /etc/auto.ruser
* -rw 192.168.10.120:/home/&
Now change something
# vi /etc/auto.master
/export/home /etc/auto.ruser
wq!
[root@sudhir ~]# umount -f /home/ldapuser1
umount.nfs4: /home/ldapuser1: device is busy
[root@sudhir ~]# pwd
/root
[root@sudhir ~]# fuser -cu /home/ldapuser1
/home/ldapuser1: 19600c(ldapuser1)
[root@sudhir ~]# ps -ef | grep 19600
ldapuse+ 19600 19599 0 12:17 pts/6 00:00:00 -bash
root 21647 20536 0 12:51 pts/4 00:00:00 grep --color=auto 19600
[root@sudhir ~]# kill -9 19600
[root@sudhir ~]# fuser -cu /home/ldapuser1
[root@sudhir ~]# umount /home/ldapuser1
[root@sudhir ~]#
No comments:
Post a Comment