document @SHELL feature, allow "info" for all,
...but still distinguish shell folks with a small extra line telling them they have shell access
This commit is contained in:
parent
9c3abb20e1
commit
b0ce84d47f
3 changed files with 33 additions and 1 deletions
|
@ -82,8 +82,9 @@ unless ($ENV{SSH_ORIGINAL_COMMAND}) {
|
|||
|
||||
my $cmd = $ENV{SSH_ORIGINAL_COMMAND};
|
||||
# people allowed to get a shell can get basic access info by asking nicely
|
||||
if ($shell_allowed and $cmd eq 'info') {
|
||||
if ($cmd eq 'info') {
|
||||
&report_basic($GL_ADMINDIR, $GL_CONF_COMPILED, $user);
|
||||
print "you also have shell access\n\r" if $shell_allowed;
|
||||
exit 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue