Commit Diff
Diff:
1caa333f0c25a94609aa1c9cfc496b95b094c30f
e104db79a87be12283116223fac98370f52fe907
Commit:
e104db79a87be12283116223fac98370f52fe907
Tree:
939ad1db79b2ef896ec7e22b2fb1963310e90824
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sun Mar 5 20:41:42 2023 UTC
Message:
Fix perms issue in Shell.pm
blob - 67385c94fc891c2e0724e49bddb4106c4a5d9604
blob + b7e51b90f555eacf143114b4898f49b495c85e86
--- Shell.pm
+++ Shell.pm
@@ -286,8 +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";
+ system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
+ system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
my $lusername = lc $username;
my $block = <<"EOF";
server "$lusername.$hostname" {
@@ -328,8 +328,8 @@ EOF
sub deleteshell {
my ($username, $bindhost) = @_;
my $lusername = lc $username;
- system "doas chown root:wheel $httpdconfpath $pfconfpath";
- system "doas chmod g+rw $httpdconfpath $pfconfpath";
+ system "doas chown root:wheel $httpdconfpath $pfconfpath $acmeconfpath";
+ system "doas chmod g+rw $httpdconfpath $pfconfpath $acmeconfpath";
system "doas groupdel $username";
system "doas userdel $username";
system "doas rm -f /etc/ssl/$lusername.$hostname.crt /etc/ssl/$lusername.$hostname.fullchain.pem /etc/ssl/private/$lusername.$hostname.key";
IRCNow