https://github.com/osama-yusuf/linux-users-groups-crud
Create, Remove, & Append Users and Groups
https://github.com/osama-yusuf/linux-users-groups-crud
linux python3 user-group-management
Last synced: 4 months ago
JSON representation
Create, Remove, & Append Users and Groups
- Host: GitHub
- URL: https://github.com/osama-yusuf/linux-users-groups-crud
- Owner: Osama-Yusuf
- License: mit
- Created: 2022-06-30T22:33:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T22:34:36.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T01:57:27.224Z (5 months ago)
- Topics: linux, python3, user-group-management
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/Osama-Yusuf/Linux-Users-Groups-CRUD).
## 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)
```bash
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:
```bash
git clone https://github.com/Osama-Yusuf/Linux-Users-Groups-CRUD.git
```Then enter repo folder and give the execution permission to the script:
```bash
cd Linux-Users-Groups-CRUD && chmod +x user-group.py
```And if instead you want to use the solo file:
```bash
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 OsIf 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:
* PayPal: https://paypal.me/OsamaYusuf
* Buy me a coffee: https://www.buymeacoffee.com/OsamaYusuf
* ETH: 0x507bF8931b534a81Ced18FDf8fc5BE4Daf08332B.---
* `By Osama-Yusuf`
* `Thanks for reading`-------
##### Report bugs for "Linux-Users-Groups-CRUD"
* `[email protected]`