Using the attached file as a "database" of users, develop an application that reads the users.txt file, and adds each one as a new user. Eac
by abdy.r.khalafi@gmail.com from LinuxQuestions.org on (#4TV9E)
Using the attached file as a "database" of users, develop an application that reads the users.txt file, and adds each one as a new user. Each user must also have a password, though in the interest of brevity, they may all be assigned the same one. Provide me the source code and a copy of your system's /etc/passwd file.
accounts.txt includes 1. Pittman,Mckenzie,Sales
2. Donovan,Moriah,Accounting
3. Barnes,Gabriel,Sales
4. Monroe,Maximillian,Management
5. Maynard,Sylvia,Management
6. Mayer,Elise,Accounting
7. Reeves,Stephen,Production
8. Oneill,Sean,Sales
9. Jackson,Hanna,Management
10. Lee,Alani,Production
11. Golden,Ibrahim,Production
12. Tyrese,Todd,Production


accounts.txt includes 1. Pittman,Mckenzie,Sales
2. Donovan,Moriah,Accounting
3. Barnes,Gabriel,Sales
4. Monroe,Maximillian,Management
5. Maynard,Sylvia,Management
6. Mayer,Elise,Accounting
7. Reeves,Stephen,Production
8. Oneill,Sean,Sales
9. Jackson,Hanna,Management
10. Lee,Alani,Production
11. Golden,Ibrahim,Production
12. Tyrese,Todd,Production