|
This is accomplished by using option 'command="..."' that precede the
key sting in the authorized_keys file. The add-authorized-keys script
accepts now the -r option for enabling the inclusion of the option
above.
The included option is actually 'command="read-only"', which points to
a new script named read-only that is installed in the
git-shell-commands directory of the Git user's login directory. This
is done in the add-git-user script.
Also, this commit makes some improvement in the code. The
add-authorized-keys script has now a usage function and accepts a -h
option. The add-git-user script has been better documented
|