File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3838# Adding '!' in front of the password
3939/usr/sbin/usermod --lock $user
4040
41+ # Suspending ftp accounts
42+ for ftp in $( grep ^$user_ .* /etc/passwd| cut -f 1 -d : ) ; do
43+ /usr/sbin/usermod --lock $ftp 2> /dev/null
44+ done
45+
4146# Suspending web domains
4247if [ ! -z " $WEB_SYSTEM " ] && [ " $WEB_SYSTEM " != ' no' ]; then
4348 $BIN /v-suspend-web-domains $user $restart
Original file line number Diff line number Diff line change 3737# Deleting '!' in front of the password
3838/usr/sbin/usermod --unlock $user
3939
40+ # Unsuspending ftp accounts
41+ for ftp in $( grep ^$user_ .* /etc/passwd| cut -f 1 -d : ) ; do
42+ /usr/sbin/usermod --unlock $ftp 2> /dev/null
43+ done
44+
4045# Unsuspending web domains
4146if [ ! -z " $WEB_SYSTEM " ] && [ " $WEB_SYSTEM " != ' no' ]; then
4247 $BIN /v-unsuspend-web-domains $user $restart
You can’t perform that action at this time.
0 commit comments