summaryrefslogtreecommitdiffstats
path: root/ftp_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'ftp_wizard')
-rwxr-xr-xftp_wizard/Proftpd.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftp_wizard/Proftpd.pm b/ftp_wizard/Proftpd.pm
index a2ef0f66..4f6bb5cc 100755
--- a/ftp_wizard/Proftpd.pm
+++ b/ftp_wizard/Proftpd.pm
@@ -297,6 +297,7 @@ sub do_it {
} else { substInFile { s/ServerAdmin.*// } $file }
change_options($o->{var}{wiz_root_login}, "RootLogin");
+ if (o->{var}{wiz_root_login} == 1) { substInFile { s/root// } "/etc/ftpusers" }
change_options($o->{var}{wiz_ftp_fxp}, "AllowForeignAddress");
# in ftp resume there is two options (store or retrieve)
change_options($o->{var}{wiz_ftp_resume}, "AllowStoreRestart");