From 29293dce60bdf28fa232b33625505436c5df33da Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 29 Jun 2010 16:51:25 -0400 Subject: Give users with ssh access a real shell, but make sure that admin still gets /etc/rc.initial --- etc/inc/auth.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/inc/auth.inc') 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 */ -- cgit v1.1