Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcrmonkey/userop
Simple script for managing users on a basic samba server
https://github.com/mcrmonkey/userop
bash-script samba-database samba-passwords samba-server shell
Last synced: about 2 months ago
JSON representation
Simple script for managing users on a basic samba server
- Host: GitHub
- URL: https://github.com/mcrmonkey/userop
- Owner: mcrmonkey
- Created: 2012-04-19T20:25:07.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T14:15:05.000Z (over 7 years ago)
- Last Synced: 2023-03-23T12:08:48.989Z (almost 2 years ago)
- Topics: bash-script, samba-database, samba-passwords, samba-server, shell
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
UserOp
======This is a script intended to make basic user administration on a samba server a little easier.
The script
----------The script is basically a wrapper for the "useradd" "passwd" and "smbpasswd" utilities
with the intention of making addition, removal and changes of user passwords simpleThe script is written for use with bash and was orginally designed to be run with sudo, eg:
```
sudo userop add newuser
```Its beginnings
--------------
It was written to make it easy for someone who doesn't know linux to add, remove and edit user account details on a linux server with a simple default samba installation.
The script was designed for a Debian based distro of linux, but it should be easy enough adjust for other linux distributions by adjusting the configuration settings at the top of the script.Operational detail
------------------When the script is invoked with:
- add - Add the user to the linux system, then add the user to a 'default' group then add the user to the samba password database
- del - Delete the user account from the samba user database then remove the user from the system. The users home directory will not be deleted.
- pass - Modify both the system and samba passwords. As the script was put together in a bit of a rush it will ask the person running the script for the new password 4 times ( twice for the local system and twice again for the samba database )
- "gibberish"|help - The script will show you some help
- manual - The script will show you the manual commands you would need to perform the tasks manually