diff options
author | jim-p <jimp@pfsense.org> | 2010-07-12 16:58:20 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-07-12 17:02:12 -0400 |
commit | d8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c (patch) | |
tree | 84b4266e9a2cdb8ab7261b83223254283e3bdc0e | |
parent | 36f83f683d6f944308a54020561e60e4148390bc (diff) | |
download | pfsense-d8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c.zip pfsense-d8d2d3e462305a9e9edcc1fbdabcc39c61d7c71c.tar.gz |
Add check for user-ssh-tunnel to give users access to the ssh tunnel shell
-rw-r--r-- | etc/inc/auth.inc | 2 |
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 { |