useradd script (wip) for adding users with pubkey integration
This commit is contained in:
parent
a351741c8a
commit
ed2970bd83
1 changed files with 23 additions and 0 deletions
23
ffuseradd.sh
Executable file
23
ffuseradd.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Author: [credential] helper = cache[credential] helper = cache[credential] helper = cache
|
||||
# File: /home/sliker/ffuseradd.sh
|
||||
# Created: 14:30:04 01/03/2013
|
||||
# Modified: 20:48:17 06/03/2013
|
||||
# Title: ffuseradd
|
||||
# Version: 0.1
|
||||
# License: GPLv2 - https://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
|
||||
# vim: ff=unix:fileencoding=utf-8:ft=sh
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo -e "\nUSAGE: ffuseradd <USERNAME>... [EMAIL ADDRESS]...\nUsername is\
|
||||
necessary!\nEmail address is optional."
|
||||
else
|
||||
if [ "$2" = "" ]; then
|
||||
echo -e "You entered username:\n Username:"$1"\n Email address: none"
|
||||
else
|
||||
echo -e "You entered username:\n Username:"$1"\n Email address: "$2""
|
||||
fi
|
||||
fi
|
Loading…
Reference in a new issue