Revision 883b2552
Added by Seth Mos over 15 years ago
etc/inc/auth.inc | ||
---|---|---|
298 | 298 |
|
299 | 299 |
/* admin user special handling */ |
300 | 300 |
if ($user_uid == 0) { |
301 |
$cmd = "/usr/sbin/pw usermod -q -n {$user_name} -s /bin/sh -H 0";
|
|
301 |
$cmd = "/usr/sbin/pw usermod -q -n {$user_name} -s /etc/rc.initial -H 0";
|
|
302 | 302 |
if($debug) |
303 | 303 |
log_error("Running: {$cmd}"); |
304 | 304 |
$fd = popen($cmd, "w"); |
Also available in: Unified diff
Correct the shell for the admin account, this should be /etc/rc.initial. Not /bin/sh