provision.pl - adjust root login regex
This commit is contained in:
parent
572d0ba0a7
commit
8d93df3368
@ -169,7 +169,7 @@ system("rcctl enable haproxy");
|
|||||||
system("rcctl start haproxy");
|
system("rcctl start haproxy");
|
||||||
|
|
||||||
# Disable root login
|
# Disable root login
|
||||||
system("sed -i -e 's/^[^#]*PermitRootLogin.+$/PermitRootLogin no/' /etc/apache2/httpd2.conf");
|
system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");
|
||||||
|
|
||||||
printf("\n\nInstall complete\n");
|
printf("\n\nInstall complete\n");
|
||||||
printf("==================================================\n");
|
printf("==================================================\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user