Browse Source

added doas.conf

tags/release-00
gashapwn 3 years ago
parent
commit
f3021964de
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      perl-script/provision.pl

+ 2
- 0
perl-script/provision.pl View File

@@ -32,3 +32,5 @@ if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0-
die "create a non-root user & set user passsword before running this script."
}

# grant doas access to admin user
system("echo 'permit $admin_un' > /etc/doas.conf");

Loading…
Cancel
Save