mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
suspend/unsuspend additional ftp accounts
This commit is contained in:
parent
a5ff23de74
commit
3f12b04cfa
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue