1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/museradd,v 1.4 2005-06-01 15:48:43 niro Exp $ |
# $Id$ |
3 |
|
|
4 |
# include all needed files |
# include all needed files |
5 |
[ -f /etc/mage.rc.global ] && source /etc/mage.rc.global |
[ -f /etc/mage.rc.global ] && source /etc/mage.rc.global |
32 |
-u) shift; [[ $1 -lt 100 ]] && FIXED_USER_OPTS+=" -S"; FIXED_USER_OPTS+=" -u $1" ;; |
-u) shift; [[ $1 -lt 100 ]] && FIXED_USER_OPTS+=" -S"; FIXED_USER_OPTS+=" -u $1" ;; |
33 |
-r) FIXED_USER_OPTS+=" -S" ;; |
-r) FIXED_USER_OPTS+=" -S" ;; |
34 |
-M) FIXED_USER_OPTS+=" -H" ;; |
-M) FIXED_USER_OPTS+=" -H" ;; |
35 |
|
-l) continue ;; # just ignore this switch, adduser does not support it |
36 |
*) FIXED_USER_OPTS+=" $1" ;; |
*) FIXED_USER_OPTS+=" $1" ;; |
37 |
esac |
esac |
38 |
shift |
shift |
66 |
do |
do |
67 |
case $1 in |
case $1 in |
68 |
-M) : ;; # usermod does not support the -M switch |
-M) : ;; # usermod does not support the -M switch |
69 |
|
-l) : ;; # usermod -l has not the same meaning like the -l switch of useradd |
70 |
*) FIXED_USERMOD_OPTS+=" $1" ;; |
*) FIXED_USERMOD_OPTS+=" $1" ;; |
71 |
esac |
esac |
72 |
shift |
shift |