diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-08 04:36:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-08 04:36:18 +0000 |
commit | b3a88dd6dad3da07ecd496fb7b0f7d91d105ec0e (patch) | |
tree | 7b4f00d41178e9e17d045d8567bbe34a9f13decb /etc/inc | |
parent | 67d40fd0ba690c5675f5355cc294bed7927f05dd (diff) | |
download | pfsense-b3a88dd6dad3da07ecd496fb7b0f7d91d105ec0e.zip pfsense-b3a88dd6dad3da07ecd496fb7b0f7d91d105ec0e.tar.gz |
Set shell when syncing
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 836d8bc..9239fa9 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1199,10 +1199,12 @@ function sync_webgui_passwords() { $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w"); fwrite($fd, $crypted_pw); pclose($fd); + mwexec("/usr/sbin/pw usermod -n root -s /etc/rc.initial"); /* sync admin */ $fd = popen("/usr/sbin/pw usermod -n admin -H 0", "w"); 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"); conf_mount_ro(); |