Commit Diff
Diff:
ccc446d908fecc40ff84c1ffa25116a5b7b31210
74e4a617104be9cb79b28ece095bef3dcafa6860
Commit:
74e4a617104be9cb79b28ece095bef3dcafa6860
Tree:
b1f9631c456cf324ba1e1dc305cdc62545541390
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sun Mar 5 20:11:41 2023 UTC
Message:
Fix permissions for Shell.pm
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" {
IRCNow