Skip to content
Snippets Groups Projects
Commit f776c1d2 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Abort if attempting to run as root.

parent 3d5a8515
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,11 @@ if ($verbose) { ...@@ -76,6 +76,11 @@ if ($verbose) {
print STDERR "SFTP server plugin found at $sftp\n"; print STDERR "SFTP server plugin found at $sftp\n";
} }
if ($username eq "root") {
print "Will not run ssh daemon as root to mitigate security risks\n";
exit 1;
}
if (! -e "curl_client_key.pub") { if (! -e "curl_client_key.pub") {
if ($verbose) { if ($verbose) {
print STDERR "Generating host and client keys...\n"; print STDERR "Generating host and client keys...\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment