Posts /

Create New User in Linux

16 Jul 2016

Script to create a user if it does not already exist in Linux

Script to create a user if it does not already exist in Linux.

The gist below does the following:

Note: package ‘whois’ is reqiured for mkpasswd to work

      sudo apt-get install whois