How to change user Password Expiry, Home Directory etc in Linux

When we create a new user in linux by default the user’s home directory is created inside /home but we can change the default login directory so that everytime a user is created, their home directory will be created inside some other specified location. Here is how you can do the same. # less /etc/default/useradd … Read more