initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.

This commit is contained in:
Dave Lane 2016-03-16 13:43:31 +13:00
commit 43e0f5b59e
329 changed files with 31937 additions and 0 deletions

15
eguseradd/eguseradd Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
#
# create a new user with the correct permissions and directories, etc.
# copyright Egressive Limited, dave@egressive.com, http://egressive.com
#
USERADD=`which useradd`
USERNAME=$1
if test -z $USERNAME ; then
echo "please supply a username"
else
echo "attempting to create user: $USERNAME"
$USERADD -d /home/$USERNAME -s /bin/bash -m -G admin $USERNAME
fi