Abort if attempting to run as root.

This commit is contained in:
Dan Fandrich 2007-03-29 05:25:11 +00:00
parent 3d5a8515a6
commit f776c1d2eb

View File

@ -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";