mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
fixed suspend/unsuspend issues
This commit is contained in:
parent
930290f518
commit
8194ee854f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue