Write a non-interactive script called create new users.sh that parses the name and password given in a file called users

others

Description

Write a non-interactive script called createnewusers.sh that parses the name and password given in a file called users.txt and creates an Ubuntu user using the first two letters of his/her first name followed by the full last name. The password should be the third field. NOTE:SCRIPT IS TO BE EXECUTED FROM A LIVE UBUNTU CD VERSION: 16.04 Desktop SAMPLE EXAMPLE: Given the following file contents: users.txt Prentis Parmenio ySHsPV5v Jon Zuhayr ucTBgFjw Peretz Avyel TjRx5SpR Zephariah Murvyn 8bNEgErY Thorn Ingvar s7SnJGRZ The 1st Field represents the first name, 2nd field represents the last name and the 3rd field represents the password. Your script will create users with the following information: userid: prparmenio password: ySHsPV5v /home/prparmenio userid: jozuhayr password: ucTBgFjw /home/jozuhayr userid: peavyel password: TjRx5SpR /home/peavyel userid: zemurvyn password: 8bNEgErY /home/zemurvyn userid: thingvar password: s7SnJGRZ /home/thingvar Requirements: PROJECT IS DUE IN PERSON DURING FINAL WEEK. ACTUAL DATE TO BE POSTED A new file will be provided having random names and passwords for testing your script. One of your group members must be present to showcase the project in person. Also send the finished script to profjvargasbmcc@gmail.com. NOTE: Maximum of two people in a group.


Related Questions in others category