commit 74e4a617104be9cb79b28ece095bef3dcafa6860 from: jrmu date: Sun Mar 05 20:11:41 2023 UTC Fix permissions for Shell.pm commit - ccc446d908fecc40ff84c1ffa25116a5b7b31210 commit + 74e4a617104be9cb79b28ece095bef3dcafa6860 blob - db738e3574a2cabb31bf2df075524fcf694c5510 blob + c4ff5a45ff7800444594b1b5dd671ed808b55efe --- Shell.pm +++ Shell.pm @@ -286,6 +286,8 @@ sub createshell { system "doas chown -R $username:www /var/www/htdocs/$username /home/$username/htdocs"; system "doas chmod -R o-rx /var/www/htdocs/$username /home/$username/htdocs"; system "doas chmod -R g+rwx /var/www/htdocs/$username /home/$username/htdocs"; + system "doas chown root:wheel $httpdconfpath $pfconfpath"; + system "doas chmod g+rw $httpdconfpath $pfconfpath"; my $lusername = lc $username; my $block = <<"EOF"; server "$lusername.$hostname" {