From: Fred T. Hamster Date: Fri, 14 Dec 2012 21:15:28 +0000 (-0500) Subject: new script to create my nice set of users and their groups. X-Git-Tag: 2.140.90~1168 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=badb6073ba4bd73e787a3d902dffb41e35515bf8;p=feisty_meow.git new script to create my nice set of users and their groups. --- diff --git a/scripts/users/group_spouter.sh b/scripts/users/group_spouter.sh new file mode 100644 index 00000000..e90df725 --- /dev/null +++ b/scripts/users/group_spouter.sh @@ -0,0 +1,5 @@ +sed -e 's/\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):.*/sudo addgroup --gid \4 \1 ; sudo adduser \1 --uid \3 --gid \4/' < $CLOUD_DIR/configuration/users/fred_and_alts.passwd >$TMP/zz_spouted_groups.sh + +Now running the $TMP/spouted_groups.sh script to create the groups: +bash $TMP/zz_spouted_groups.sh +