Give users with ssh access a real shell, but make sure that admin still gets /etc/rc.initial

This commit is contained in:
jim-p 2010-06-29 16:51:25 -04:00
parent cb58828465
commit 29293dce60

View File

@ -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 */