Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User Admin Script
- #!/bin/bash
- # Save this script either as user_adm.sh or user_adm
- #Must be executed as root.
- #
- #Filename: user_adm.sh
- #Description: A user administration tool
- function usage()
- {
- echo Usage:
- echo Add a new user
- echo $0 -adduser username password
- echo
- echo Remove an existing user
- echo $0 -deluser username
- echo
- echo Set the default shell for the user
- echo $0 -shell username SHELL_PATH
- echo
- echo Suspend a user account
- echo $0 -disable user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement