summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-14 19:42:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-14 19:42:58 +0000
commit5ee05677740b0a62b14755e9d3c9cab455bb5e15 (patch)
treee92a0989641d55774f79b67ed6965510d55dfcc1 /etc
parentcb21eb7b96b0eaf8086bc54dfda50b6fc7207111 (diff)
downloadpfsense-5ee05677740b0a62b14755e9d3c9cab455bb5e15.zip
pfsense-5ee05677740b0a62b14755e9d3c9cab455bb5e15.tar.gz
Make sure DB is consistent
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index dbbeedf..287d272 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1272,6 +1272,8 @@ function sync_webgui_passwords() {
fclose($fd);
chmod("{$g['varrun_path']}/htpasswd", 0600);
$crypted_pw = $config['system']['password'];
+ mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd");
+ mwexec("/usr/sbin/pwd_mkdb /etc/master.passwd");
/* sync root */
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
fwrite($fd, $crypted_pw);
OpenPOWER on IntegriCloud