summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-29 16:51:25 -0400
committerjim-p <jimp@pfsense.org>2010-06-29 16:51:25 -0400
commit29293dce60bdf28fa232b33625505436c5df33da (patch)
tree4adf30b37bd7d7f755589b00cbd502c6933487df
parentcb58828465831cc4a4924462666d7a3c71293a3f (diff)
downloadpfsense-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.inc3
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 */
OpenPOWER on IntegriCloud