top of page
Search

How to create Users and Groups in Linux using my Gitbhub script

  • Writer: Oliver Santana
    Oliver Santana
  • Oct 2, 2019
  • 1 min read

Updated: Dec 8, 2019

You can find my code at this link: https://github.com/osantana19/Create_Users_Linux



Run the script to add a group

ree

Script asks for group name and creates new group

ree

Read /etc/group to make sure group was created

ree


Should show groups were created

ree

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)

ree

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

ree

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

ree

This is what happens when you say yes.

ree

Asks you to name a file to export the usernames to

ree


Check to make sure Username text file was created

ree

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


ree

ree

 
 
 

Comments


©2019 by Oliver Santana. Proudly created with Wix.com

bottom of page