summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-02 01:43:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-02 01:43:47 +0000
commit6fcbe2153c465f349f34bdae3e9a5586d7aff61b (patch)
tree7428458e4cdbfdf3383f58da5c983fa65f4e29ad /usr
parenteba8a2dea56b3fcb144bb74dc0a0776682fc14a1 (diff)
downloadpfsense-6fcbe2153c465f349f34bdae3e9a5586d7aff61b.zip
pfsense-6fcbe2153c465f349f34bdae3e9a5586d7aff61b.tar.gz
Correctly assign uid to the user.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_usermanager_edit.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr/local/www/system_usermanager_edit.php b/usr/local/www/system_usermanager_edit.php
index e002610..b27ca41 100644
--- a/usr/local/www/system_usermanager_edit.php
+++ b/usr/local/www/system_usermanager_edit.php
@@ -129,11 +129,15 @@ if ($_POST) {
$t_privs[$id] = $priv;
else
$t_privs[] = $priv;
-
- if ($priv['id'] == "hasshell") {
- assignUID($user['name']);
- assignGID($user['groupname']);
- }
+
+ $name = $config['system']['user'][$userid]['name'];
+ $groupname = $config['system']['user'][$userid]['groupname'];
+
+ if ($priv['id'] == "hasshell") {
+ log_error("Assigning UID to $name / $groupname");
+ assignUID($name);
+ assignGID($groupname);
+ }
write_config();
OpenPOWER on IntegriCloud