aboutsummaryrefslogtreecommitdiffstats
path: root/add-user
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-07-29 15:25:13 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-07-29 15:25:13 +0000
commit4936c87b3e8ab1054abeeec2e549d4cf3bbe874c (patch)
treeab906eb0c33b7afab2a242b54a5338b57c5ed08a /add-user
parent175bcf4cf691ee9f7a6a2115576a4011af7b4c22 (diff)
downloadrpm-helper-4936c87b3e8ab1054abeeec2e549d4cf3bbe874c.tar
rpm-helper-4936c87b3e8ab1054abeeec2e549d4cf3bbe874c.tar.gz
rpm-helper-4936c87b3e8ab1054abeeec2e549d4cf3bbe874c.tar.bz2
rpm-helper-4936c87b3e8ab1054abeeec2e549d4cf3bbe874c.tar.xz
rpm-helper-4936c87b3e8ab1054abeeec2e549d4cf3bbe874c.zip
removed group management
Diffstat (limited to 'add-user')
-rwxr-xr-xadd-user13
1 files changed, 1 insertions, 12 deletions
diff --git a/add-user b/add-user
index f2d1126..74bbcee 100755
--- a/add-user
+++ b/add-user
@@ -11,7 +11,7 @@
#---------------------------------------------------------------
if [ $# -lt 5 ]; then
- echo "usage: $0 <pkg name> <num installed> <user name> <home dir> <shell> [<group1> <group2>...]" 1>&2
+ echo "usage: $0 <pkg name> <num installed> <user name> <home dir> <shell>" 1>&2
exit 1
fi
@@ -20,17 +20,6 @@ num=$2 # number of packages installed
name=$3 # name of the user
dir=$4 # home directory
shell=$5 # shell
-shift 5
-
-if [ $# -gt 0 ]; then
- garg="-G $1"
- /usr/sbin/groupadd -r $1 > /dev/null 2>&1
- shift
- for g in $*; do
- garg="$garg,$g"
- /usr/sbin/groupadd -r $g > /dev/null 2>&1
- done
-fi
/usr/sbin/useradd -r -M -s $shell -d $dir -c "system user for $pkg" $garg $name > /dev/null 2>&1