Share Folder For Openldap Users
Share Folder For Openldap Users
In this notes we will setup how to share different-different directory for particular ldap
user. For the personal data storage.
Ldap Server-
# mkdir /Share_Dir
# vim /etc/exports
/Share_Dir 172.16.10.0/16(rw,sync)
3- Restart Services
Now create folders for ldap users, which will store personal data to their own share
folder.
# mkdir /Share_Dir/user1
# mkdir /Share_Dir/user2
Note: - First check your ldap user group id and gid on ldap server
(# ldapsearch -x -LLL "cn=*" -b "ou=users,dc=linuxpert,dc=com")
# chown -R ldap-user_uid:ldap_user_gid /Share_Dir/folder_name
# reboot
Now Login to your ldap user and check your mount folder…
First I’m login to ldap user – user1
user1@Linux-Team:~$ whoami
user1
user1@Linux-Team:~$ ls /Share_Dir/
user1 user2
user1@Linux-Team:~$ su – user2
Password:
And trying to create, remove files or folder “user1” & “user2’ share folder..
Check the below example-
Check on server
All users data will be store on “/Share_Dir” Folder…
[root@www ~]# ll /Share_Dir/user1/
total 0
-rw-r--r-- 1 5003 5003 0 Aug 25 17:28 test1
[root@www ~]# ll /Share_Dir/user1/
total 0
-rw-r--r-- 1 5004 5004 0 Aug 25 17:30 test3
-Ashutosh