« The Vulgarity of Anonymity, the Death of EmpathyEeepc goofed up volume control when playing video »

No home directory on machines with ldap authentication

02/04/09

  08:02:23 pm by wdawe, Categories: linux

Tired of ssh'ing into a machine that has ldap authentication but doesn't have a home directory for you? Adduser or useradd doesn't work when user already exists in the Ldap directory. You can manually create the directory, copy the files in from /etc/skel and change the permissions but there is an easier fix.

First verify that you have pam_mkhomedir.so in /lib/security Then all you need to do is to add the following line to /etc/pam.d/sshd and systems that don't have a home directory for your login name will have one created the first time you connect via ssh.

session required pam_mkhomedir.so skel=/etc/skel/ umask=0022

That's it, there is no more.

No feedback yet


Form is loading...

October 2025
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

Wayne D's Blog

Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.

Search

Random photo

Moving a window above the top bar in Gnome 3 classic shell

  XML Feeds

Free CMS