diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-03-24 02:01:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-03-24 02:01:38 +0000 |
commit | c6f535e2e55755ae81a18f3a9a23c72f1a10a05f (patch) | |
tree | 0a2a37549077be3708b684317054e99a2041c32b /etc/sshd | |
parent | 116852b8ef260a6589473438568293d109d8b7ce (diff) | |
download | pfsense-c6f535e2e55755ae81a18f3a9a23c72f1a10a05f.zip pfsense-c6f535e2e55755ae81a18f3a9a23c72f1a10a05f.tar.gz |
Call sync_webgui_passwords() instead of manual routine
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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"; |