Automate the creation of users Linux using .CSV file

preview_player
Показать описание
In this video you will learn how to automate the creation of users, by importing them from .csv file in Unix and Linux, using bash script.
Frist we need to create the csv file:
FirstName,LastName,UserName,Department,Password
Konrad,Fredsson,kof,IT,pass123
Kristin,Tora,krt,Sales,pass123
Second we need to create the script that will loop over the .csv file and create the users as shown in the video.
After creating the script make sure you make it executable by using chmod command.
If you liked the video give it like, comment and subscribe and thank you.
Рекомендации по теме
Комментарии
Автор

hey, i just realized this was Abdel half way through, nice video :)

olisaer
Автор

After I run the script the new users can not login. In place of a password entry box, there is just the word "LOGIN" with an arrow. I click that and it appears to try to log in, but then returns to the login screen.I am using Mint, if that matters.

wkdmnky
Автор

why $FirstNmae still not fixed sir? is it important that we must declare as shown the original file? I mean that you not notice the $FirstNmae and your code is working well

diy__diy
Автор

nice video, how about create multi files and the filename is from the list in csv?

nachoguapito
Автор

After finding perticular row How update to perticular data in .csv file??

narendranandaniya
visit shbcf.ru