mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Give users with ssh access a real shell, but make sure that admin still gets /etc/rc.initial
This commit is contained in:
parent
cb58828465
commit
29293dce60
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user