fixed suspend/unsuspend issues

This commit is contained in:
Serghey Rodin 2015-08-20 18:03:22 +03:00
parent 930290f518
commit 8194ee854f
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ fi
/usr/sbin/usermod --lock $user
# Suspending ftp accounts
for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do
for ftp in $(grep "^${user}_" /etc/passwd |cut -f 1 -d : ); do
/usr/sbin/usermod --lock $ftp 2>/dev/null
done

View file

@ -38,7 +38,7 @@ fi
/usr/sbin/usermod --unlock $user
# Unsuspending ftp accounts
for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do
for ftp in $(grep "^${user}_" /etc/passwd |cut -f 1 -d : ); do
/usr/sbin/usermod --unlock $ftp 2>/dev/null
done