diff options
author | jim-p <jimp@pfsense.org> | 2010-06-29 16:51:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-29 16:51:25 -0400 |
commit | 29293dce60bdf28fa232b33625505436c5df33da (patch) | |
tree | 4adf30b37bd7d7f755589b00cbd502c6933487df | |
parent | cb58828465831cc4a4924462666d7a3c71293a3f (diff) | |
download | pfsense-29293dce60bdf28fa232b33625505436c5df33da.zip pfsense-29293dce60bdf28fa232b33625505436c5df33da.tar.gz |
Give users with ssh access a real shell, but make sure that admin still gets /etc/rc.initial
-rw-r--r-- | etc/inc/auth.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index ad434ab..0af0594 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -254,6 +254,8 @@ function local_user_set(& $user) { $user_shell = "/sbin/nologin"; else $user_shell = "/usr/local/bin/scponly"; + } else { + $user_shell = "/bin/tcsh"; } /* root user special handling */ @@ -266,6 +268,7 @@ function local_user_set(& $user) { pclose($fd); $user_group = "wheel"; $user_home = "/root"; + $user_shell = "/etc/rc.initial"; } /* read from pw db */ |