diff --git a/bin/v-suspend-user b/bin/v-suspend-user index adbff01a..bd9ad7f9 100755 --- a/bin/v-suspend-user +++ b/bin/v-suspend-user @@ -38,6 +38,11 @@ fi # Adding '!' in front of the password /usr/sbin/usermod --lock $user +# Suspending ftp accounts +for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do + /usr/sbin/usermod --lock $ftp 2>/dev/null +done + # Suspending web domains if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then $BIN/v-suspend-web-domains $user $restart diff --git a/bin/v-unsuspend-user b/bin/v-unsuspend-user index 4222d298..df574808 100755 --- a/bin/v-unsuspend-user +++ b/bin/v-unsuspend-user @@ -37,6 +37,11 @@ fi # Deleting '!' in front of the password /usr/sbin/usermod --unlock $user +# Unsuspending ftp accounts +for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do + /usr/sbin/usermod --unlock $ftp 2>/dev/null +done + # Unsuspending web domains if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then $BIN/v-unsuspend-web-domains $user $restart