Displaying 1 result from an estimated 1 matches for "sftp_users_group".
2023 Apr 03
0
sftp and utmp
...quot; to look for ongoing logins of
the same user, and having the script exit without any output if found,
should be easy ...
> PasswordAuthentication no
> ChallengeResponseAuthentication no
> GSSAPIAuthentication no
> Subsystem sftp internal-sftp
[...]
> Match group JUST-SFTP_USERS_GROUP
> ChrootDirectory %h
[...]
> ForceCommand internal-sftp -l INFO -u 0077
[...]
> AuthorizedKeysCommand AKC_SCRIPT
> AuthorizedKeysCommandUser AKC_USER
> $ cat AKC_SCRIPT
> #!/bin/sh
[...]
> MANDANT="$1"
> if [ "`echo $MANDANT |...