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:
Sitaram Chamarty 2009-12-23 19:56:53 +05:30
parent 9c3abb20e1
commit b0ce84d47f
3 changed files with 33 additions and 1 deletions

View file

@ -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;
}