diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-21 18:30:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-21 18:30:12 +0000 |
commit | 7872051edc071e3a88d9774fe25d2fb591b53ca8 (patch) | |
tree | c2addd068183410bfd0d466248b5d6ff8182e252 /etc/inc/pfsense-utils.inc | |
parent | 262df9d55a5c5e0a7610fb1d65dcd4dd14b27922 (diff) | |
download | pfsense-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.inc | 13 |
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 |