From ed2970bd835d86ab3a34e22a8f4e22fc29446faf Mon Sep 17 00:00:00 2001 From: sliker1 Date: Sun, 24 Mar 2013 14:39:41 +0100 Subject: [PATCH] useradd script (wip) for adding users with pubkey integration --- ffuseradd.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ffuseradd.sh diff --git a/ffuseradd.sh b/ffuseradd.sh new file mode 100755 index 0000000..7e81499 --- /dev/null +++ b/ffuseradd.sh @@ -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 ... [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