Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-15-2016, 04:13 AM   #1
LQ Newbie
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
Question : Automount user home directories in ldap ???

when user will login to ldap server its home directory will change to /home/guests/username

My configurations:

cat /etc/auto.master
/home/guests/ /etc/

cat /etc/
* -fstype=nfs,rw

I am logged in to the machine using xyz[ local user ] username.

When I restart autofs service, it gives me following error

Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled) Active: active (running) since Mon 2016-02-15 13:25:18 PKT; 16s ago Process: 3962 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/ (code=exited, status=0/SUCCESS) Main PID: 3964 (automount) CGroup: /system.slice/autofs.service └─3964 /usr/sbin/automount --pid-file /run/

Feb 15 13:25:15 client1.homedomain.local automount[3964]: setautomntent: lookup(sss): setautomntent: No such file or directory Feb 15 13:25:17 client1.homedomain.local automount[3964]: DIGEST-MD5 common mech free Feb 15 13:25:18 client1.homedomain.local systemd[1]: Started Automounts filesystems on demand.

when i su with ldap user , it gives me this error

su: warning: cannot change directory to /home/guests/ldapuser5: No such file or directory

Kindly help me to solve this issue

ldap mount point is working fine with manual mount.
Old 02-15-2016, 06:14 AM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,473

Rep: Reputation: Disabled
Before you can mount a network file system, the local mount point has to exist.

In other words, you need the system to create an empty directory called "username" under /home/guest whenever a new user logs in. pam_mkhomedir can do just that.


autofs, ldap, linux, redhat

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
automount of nfs home directories not working with configuration jlowry Linux - Server 5 12-03-2009 10:58 PM
Automount home directories??? BeauSanders Linux - Networking 2 09-15-2005 05:16 PM
automount home directories alex r Linux - Software 2 02-24-2005 11:02 PM
automount Solaris home directories onto RedHat ghouliajoolia Linux - General 3 09-07-2004 07:20 AM
getting home directories to automount with NIS schurt Linux - Networking 3 04-23-2004 01:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration