summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-12 03:03:07 +0000
committerBill Marquette <billm@pfsense.org>2005-03-12 03:03:07 +0000
commit128f6a3ec56b4dc18a8bec1a056a075320889a4e (patch)
tree5e7236bb846a2922185fa638d13a9b3c53f3677b /etc/sshd
parent099fa54a2e1a5de95fe39c289243625cbcded2cb (diff)
downloadpfsense-128f6a3ec56b4dc18a8bec1a056a075320889a4e.zip
pfsense-128f6a3ec56b4dc18a8bec1a056a075320889a4e.tar.gz
Let user SSH in as admin instead of root only (requested for consistency)
Full path to sshd
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index 58c3dbe..11226b2 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -43,10 +43,13 @@
touch("/var/log/lastlog");
}
- // Make the root password the same as the admin password of m0n0.
+ // Make the root/admin passwords are the same as the web admin password.
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
fwrite($fd, $config['system']['password']);
pclose($fd);
+ $fd = popen("/usr/sbin/pw usermod -n admin -H 0", "w");
+ fwrite($fd, $config['system']['password']);
+ pclose($fd);
$sshConfigDir = "/etc/ssh";
if (!file_exists("$sshConfigDir/ssh_host_key")) {
@@ -56,7 +59,7 @@
}
// And finally ...
- system("sshd");
+ system("/usr/sbin/sshd");
fwrite($stderr, "Done.\n");
?>
OpenPOWER on IntegriCloud