We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 930290f commit 8194ee8Copy full SHA for 8194ee8
bin/v-suspend-user
@@ -39,7 +39,7 @@ fi
39
/usr/sbin/usermod --lock $user
40
41
# Suspending ftp accounts
42
-for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do
+for ftp in $(grep "^${user}_" /etc/passwd |cut -f 1 -d : ); do
43
/usr/sbin/usermod --lock $ftp 2>/dev/null
44
done
45
bin/v-unsuspend-user
@@ -38,7 +38,7 @@ fi
38
/usr/sbin/usermod --unlock $user
# Unsuspending ftp accounts
/usr/sbin/usermod --unlock $ftp 2>/dev/null
0 commit comments