Browse Source
Merge pull request #64 from YunoHost-Apps/testing
Merge pull request #64 from YunoHost-Apps/testing
Testing: Use sftp.app group from 4.2 to manage sftp access, + fix permissionsmaster
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 64 additions and 111 deletions
-
10README.md
-
12README_fr.md
-
21conf/ssh_regenconf_hook
-
4manifest.json
-
11scripts/backup
-
38scripts/install
-
9scripts/remove
-
41scripts/restore
-
29scripts/upgrade
@ -1,21 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
action=$1 |
|||
pending_dir=$4 |
|||
ssh_conf=$pending_dir/../ssh/etc/ssh/sshd_config |
|||
|
|||
[[ $action == "pre" ]] || exit 0 |
|||
[[ -e $ssh_conf ]] || exit 0 |
|||
|
|||
echo " |
|||
|
|||
##-> __APP__ |
|||
# Hardening user connection |
|||
Match User __APP__ |
|||
ChrootDirectory %h |
|||
ForceCommand internal-sftp |
|||
AllowTcpForwarding no |
|||
PermitTunnel no |
|||
X11Forwarding no |
|||
PasswordAuthentication yes |
|||
##<- __APP__" >> $ssh_conf |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue