initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.
This commit is contained in:
commit
43e0f5b59e
329 changed files with 31937 additions and 0 deletions
15
eguseradd/eguseradd
Executable file
15
eguseradd/eguseradd
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue