Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Subsystem sftp internal-sftp
  2. Match Group sftpbackups
  3. ChrootDirectory %h
  4. X11Forwarding no
  5. AllowTcpForwarding no
  6. ForceCommand internal-sftp
  7.  
  8. sftp> ls -l
  9. drwxrwxrwx 2 testuser testuser 4096 Sep 25 00:09 backups
  10. sftp> put a.txt backups
  11. Uploading a.txt to /home/testuser/backups/a.txt
  12. a.txt
  13.  
  14. sftp> ls -l
  15. drwxrwxrwx 2 1290 1291 4096 Sep 30 14:58 backups
  16. sftp> put a.txt backups
  17. Uploading a.txt to /backups/a.txt
  18. remote open("/backups/a.txt"): Permission denied
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement