Bash Script for bulk user creation
By using this script you can create users interactively by your choice, from a file and even you can do modifications for a user such as change password, home directory, group and restrict login.
This code has been moved to GITHUB and you can access the code from the below link.
GitHub Link : Bulk User Creation
Sample file for user creation using file:
adam:Adam_123:testgroup:/home/adam
shrikant:Shri_123:root:/uhome/shrikant
bob:Bob_1234:testgroup:/home/bob
hemant:Hem_123:testgroup:/home/hemant
sharat:Shar_123:testgroup:/home/sharat
prakash:Prak_123:testgroup:/home/prakash
scary:Scary_123:root:/uhome/scary
omkar:Omkar_123:root:/uhome/omkar
india:India_123:root:/uhome/india
bhagat:Bhagat_123:root:/uhome/bhagat
linux:Linux_123:root:/uhome/linux
No comments :
Post a Comment