summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-24 02:01:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-24 02:01:38 +0000
commitc6f535e2e55755ae81a18f3a9a23c72f1a10a05f (patch)
tree0a2a37549077be3708b684317054e99a2041c32b /etc/sshd
parent116852b8ef260a6589473438568293d109d8b7ce (diff)
downloadpfsense-c6f535e2e55755ae81a18f3a9a23c72f1a10a05f.zip
pfsense-c6f535e2e55755ae81a18f3a9a23c72f1a10a05f.tar.gz
Call sync_webgui_passwords() instead of manual routine
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd12
1 files changed, 2 insertions, 10 deletions
diff --git a/etc/sshd b/etc/sshd
index 71537f4..4bdba06 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -65,16 +65,8 @@
touch("/var/log/lastlog");
}
- /* Make the root passwords are the same as the web admin password. */
- conf_mount_rw();
- $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
- fwrite($fd, $config['system']['password']);
- fclose($fd);
-
- /* Make the admin passwords are the same as the web admin password. */
- $fd = popen("/usr/sbin/pw usermod -n admin -H 0", "w");
- fwrite($fd, $config['system']['password']);
- fclose($fd);
+ /* reset passwords */
+ sync_webgui_passwords();
$sshConfigDir = "/etc/ssh";
OpenPOWER on IntegriCloud