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.
- Create or Delete Users
- Create or Delete Groups
- Append Users to a Certain Group
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
First copy it to the binaries folder to run it as a command without the extension (.sh)
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
- Ubuntu OS
- Kali-Linux Os
If you have successfully tested this script on others systems or platforms please let me know!
If you want to support this project, please consider donating:
- PayPal: https://paypal.me/OsamaYusuf
- Buy me a coffee: https://www.buymeacoffee.com/OsamaYusuf
- ETH: 0x507bF8931b534a81Ced18FDf8fc5BE4Daf08332B.
By Osama-Yusuf
Thanks for reading
osama9mohamed5@gmail.com