Skip to content

Osama-Yusuf/Linux-Users-Groups-CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux-Users-Groups-CRUD

Linux-Users-Groups-CRUD is a Python script that can be used to add, remove & append Users & Groups (CRUD). This is done by importing the "sys" library allowing us to execute shell commands inside the python script.

You can take a look at the GitHub project page.

Features

  • Create or Delete Users
  • Create or Delete Groups
  • Append Users to a Certain Group

Getting started

Download the solo script and give it execution permission using this command: (Recommended)

curl "https://raw.githubusercontent.com/Osama-Yusuf/Linux-Users-Groups-CRUD/main/user-group-solo.py" -o user-group-solo.py && chmod +x user-group-solo.py

or

You can clone the whole repository using git:

git clone https://github.com/Osama-Yusuf/Linux-Users-Groups-CRUD.git

Then enter repo folder and give the execution permission to the script:

cd Linux-Users-Groups-CRUD && chmod +x user-group.py

And if instead you want to use the solo file:

cd Linux-Users-Groups-CRUD && chmod +x user-group-solo.py

Usage

First copy it to the binaries folder to run it as a command without the extension (.sh)

Note that you cannot copy this script to /bin and run it as a program without extension (.sh)

So it's recommended that you give permission and copy the solo file to the /bin/ like:

sudo cp user-group-solo.py /usr/bin/user-group

You can delete the script now if you want.

rm -f user-group-solo.py

Now you can execute the script in two ways:

First: (Recommended)

user-group

Second:

python3 user-group.py

Tested Environments

  • Ubuntu OS
  • Kali-Linux Os

If you have successfully tested this script on others systems or platforms please let me know!

Donations

If you want to support this project, please consider donating:


  • By Osama-Yusuf
  • Thanks for reading

Report bugs for "Linux-Users-Groups-CRUD"
  • osama9mohamed5@gmail.com

About

Create, Remove, & Append Users and Groups

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages