summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-21 18:30:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-21 18:30:12 +0000
commit7872051edc071e3a88d9774fe25d2fb591b53ca8 (patch)
treec2addd068183410bfd0d466248b5d6ff8182e252 /etc/inc/pfsense-utils.inc
parent262df9d55a5c5e0a7610fb1d65dcd4dd14b27922 (diff)
downloadpfsense-7872051edc071e3a88d9774fe25d2fb591b53ca8.zip
pfsense-7872051edc071e3a88d9774fe25d2fb591b53ca8.tar.gz
Add sync_webgui_passwords()
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 4f27aef..a3d3acb 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1120,6 +1120,19 @@ function reload_interfaces() {
touch("/tmp/reload_interfaces");
}
+/****f* pfsense-utils/sync_webgui_passwords
+ * NAME
+ * sync_webgui_passwords - syncs webgui and ssh passwords
+ * INPUTS
+ * none
+ * RESULT
+ * none
+ ******/
+function sync_webgui_passwords() {
+ mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd");
+ mwexec("/usr/sbin/pwd_mkdb /etc/master.passwd");
+}
+
/****f* pfsense-utils/reload_all_sync
* NAME
* reload_all - reload all settings
OpenPOWER on IntegriCloud