Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. uid = pi
  2. gid = pi
  3. read only = false
  4. use chroot = true
  5. transfer logging = true
  6. log format = %h %o %f %l %b
  7. log file = /var/log/rsyncd.log
  8. hosts allow = 192.168.99.0/24
  9. [main]
  10. path = /Y/rsync
  11. comment = Rsync main directory for tests
  12. auth users = USER01, USER02, USER03
  13. secrets file = /etc/rsyncd.secrets
  14.  
  15. USER01:pw1
  16. USER02:pw2
  17. USER03:pw3
  18.  
  19. pi@RP02 ~ $ rsync --list-only USER01@RP01::main
  20. Password:
  21. drwxrwxrwx 0 2016/06/23 19:17:16 .
  22. -rwxrwxrwx 8 2016/06/23 19:09:06 test01.txt
  23. drwxrwxrwx 0 2016/06/23 19:22:18 Test-FS2
  24.  
  25. pi@RP02 ~ $ rsync --list-only USER01@RP01:main
  26. USER01@rp01's password:
  27. Permission denied, please try again.
  28.  
  29. pi@RP02 ~ $ rsync --list-only pi@RP01:/
  30. pi@rp01's password:
  31. drwxr-xr-x 4096 2016/05/20 17:01:25 .
  32. drwxr-xr-x 4096 2016/06/12 16:02:53 bin
  33. ...
  34. drwxr-xr-x 4096 2015/02/16 15:02:42 var
  35.  
  36. rsync --list-only pi@RP01:main
  37.  
  38. pi@RP02 ~ $ rsync --list-only pi@RP01::main
  39. Password:
  40. @ERROR: auth failed on module main
  41. rsync error: error starting client-server protocol (code 5) at main.c(1534) [Receiver=3.0.9]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement