summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-12 16:58:20 -0400
committerjim-p <jimp@pfsense.org>2010-07-12 17:02:12 -0400
commitd8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c (patch)
tree84b4266e9a2cdb8ab7261b83223254283e3bdc0e /etc/inc/auth.inc
parent36f83f683d6f944308a54020561e60e4148390bc (diff)
downloadpfsense-d8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c.zip
pfsense-d8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c.tar.gz
Add check for user-ssh-tunnel to give users access to the ssh tunnel shell
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index ac9bc9a..2b66355 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -288,6 +288,8 @@ function local_user_set(& $user) {
/* configure shell type */
if (userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all")) {
$user_shell = "/bin/tcsh";
+ } elseif (userHasPrivilege($user, "user-ssh-tunnel")) {
+ $user_shell = "/usr/local/sbin/ssh_tunnel_shell";
} elseif (userHasPrivilege($user, "user-copy-files")) {
$user_shell = "/usr/local/bin/scponly";
} else {
OpenPOWER on IntegriCloud