How to create Users and Groups in Linux using my Gitbhub script
- Oliver Santana
- Oct 2, 2019
- 1 min read
Updated: Dec 9, 2019
You can find my code at this link: https://github.com/osantana19/Create_Users_Linux
Run the script to add a group

Script asks for group name and creates new group

Read /etc/group to make sure group was created

Should show groups were created

Use this command to enable python 3 to run my next script (Important: If you dont have the python package installed look up how to install Python 3 because Python 2 will not work)

Run python script to make usernames provide a text file with list of names to add them to groups created before.

Asks you what group you would like to add user to also if you want to use the group for the rest of the users. An example of saying no

This is what happens when you say yes.

Asks you to name a file to export the usernames to

Check to make sure Username text file was created

Check to make sure users were made, and you're done!



Comments