Commit f776c1d2 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Abort if attempting to run as root.

parent 3d5a8515
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -76,6 +76,11 @@ if ($verbose) {
	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 ($verbose) {
		print STDERR "Generating host and client keys...\n";