summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-29 05:03:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-29 05:03:58 +0000
commit71bee4090283b0c1110cabcd695e60cc99e59b9f (patch)
tree51ce8d43ca4bd2d2ea86cf38a1c179a317e521e3 /etc/inc/pfsense-utils.inc
parent6577d78252fc37981410567f9b21f0415355c6dd (diff)
downloadpfsense-71bee4090283b0c1110cabcd695e60cc99e59b9f.zip
pfsense-71bee4090283b0c1110cabcd695e60cc99e59b9f.tar.gz
MFC 8802
add -p swich to pwd_mkdb to update /etc/passwd.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index ce99b02..4f9a8c3 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1363,8 +1363,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");
+ mwexec("/usr/sbin/pwd_mkdb -d /etc -p /etc/master.passwd");
+ mwexec("/usr/sbin/pwd_mkdb -p /etc/master.passwd");
/* sync root */
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
fwrite($fd, $crypted_pw);
@@ -1375,8 +1375,8 @@ function sync_webgui_passwords() {
fwrite($fd, $crypted_pw);
pclose($fd);
mwexec("/usr/sbin/pw usermod -n admin -s /etc/rc.initial");
- mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd");
- mwexec("/usr/sbin/pwd_mkdb /etc/master.passwd");
+ mwexec("/usr/sbin/pwd_mkdb -d /etc -p /etc/master.passwd");
+ mwexec("/usr/sbin/pwd_mkdb -p /etc/master.passwd");
conf_mount_ro();
}
@@ -1475,4 +1475,4 @@ function reload_all_sync() {
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud