Language Selection

English French German Italian Portuguese Spanish

Giving users a home directory automatically

Filed under
HowTos

If you are using LDAP or NIS to manage users you might discover users having problems because they don't have a home directory on each machine they can connect to. Thankfully there is a simple solution for creating home directories upon demand for users.

The Pluggable Authentication Modules library, or PAM, is a collection of shared libraries which control how users login to systems. There are a number of modules installed which can be used to restrict user access to systems in different ways. There are also several utility modules which can be used to customise login behaviour.

In the past we've shown how to limit the times of day users can login by making use of the pam_time.so library.
Amongst the utility libraries included as standard with your Debian GNU/Linux installation (located in the directory /lib/security) is pam_mkhomedir.so which can be used to create a new home directory for users who do not already have one.

To enable this module we need to add the following line to /etc/pam.d/common-account:

Full Story.

More in Tux Machines

Getting Started in Open Source Software

Open source software is everywhere, and chances are high that you’ll be writing, deploying, or administering it when you enter the workforce. Hiring managers are looking for candidates with experience in open source. Employers will often ask you for your GitHub username along with - or instead of - your resume. So, if you’re all new to open source, where should you get started? If you’re feeling a bit intimated about the wide world of open source software, it’s totally understandable. There’s thousands of projects, and it’s hard to know which one will give you the best experience you can use to build your skill set. And it can be even harder to know which one will give you the best experience as a contributor and human being. Read more

Canonical to Support Two Ubuntu Versions, One Based on Deb and One on Snappy

Canonical is bringing some very significant changes to Ubuntu and that includes a new way of packaging and maintaining the system. That being said, the company will continue to provide support for both the .deb based and .snap based Ubuntu systems for a long time. Read more

Ubuntu 15.04 (Vivid Vervet) Gets Its First Linux Kernel Update

The first kernel update for the Ubuntu 15.04 (Vivid Vervet) operating system arrived on May 5 and it patched a very important vulnerability in the upstream Linux kernel 3.19. As such, all Ubuntu 15.04 users are urged to update their systems as soon as possible. Read more

5 Best Android Phones [May, 2015]

Those looking for a new Android phone in the month of May are going to find themselves staring at a number of solid options. With that in mind, we want to help narrow things down for those that are need of some assistance. Here, we take a look at the device’s we think represent the best Android phones for May, 2015. Last month, Samsung and HTC released their new 2015 flagships into the wild. The Samsung Galaxy S6 Edge, Samsung Galaxy S6, and HTC One M9 join a crowded field of competitors tempting those looking for a new Android phone this month. They will soon be joined by an LG G4, a device that’s set to replace the popular LG G3 in June. Read more