new script to create my nice set of users and their groups.
authorFred T. Hamster <fred@gruntose.com>
Fri, 14 Dec 2012 21:15:28 +0000 (16:15 -0500)
committerFred T. Hamster <fred@gruntose.com>
Fri, 14 Dec 2012 21:15:28 +0000 (16:15 -0500)
scripts/users/group_spouter.sh [new file with mode: 0644]

diff --git a/scripts/users/group_spouter.sh b/scripts/users/group_spouter.sh
new file mode 100644 (file)
index 0000000..e90df72
--- /dev/null
@@ -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
+