Advertisement
Guest User

Untitled

a guest
May 14th, 2017
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. [root@san-gerrit ~]# cat /etc/rssh.conf
  2. # This is the default rssh config file
  3.  
  4. # set the log facility. "LOG_USER" and "user" are equivalent.
  5. logfacility = LOG_USER
  6.  
  7. # Leave these all commented out to make the default action for rssh to lock
  8. # users out completely...
  9.  
  10. #allowscp
  11. #allowsftp
  12. #allowcvs
  13. #allowrdist
  14. #allowrsync
  15.  
  16. # set the default umask
  17. umask = 022
  18.  
  19. # If you want to chroot users, use this to set the directory where the root of
  20. # the chroot jail will be located.
  21. #
  22. # if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT.
  23. # chrootpath = /usr/local/chroot
  24.  
  25. # You can quote anywhere, but quotes not required unless the path contains a
  26. # space... as in this example.
  27. #chrootpath = "/usr/local/my chroot"
  28. #chrootpath = "/home/testman"
  29.  
  30. ##########################################
  31. # EXAMPLES of configuring per-user options
  32.  
  33. #user=rudy:077:00010: # the path can simply be left out to not chroot
  34. #user=rudy:077:00010 # the ending colon is optional
  35.  
  36. #user=rudy:011:00100: # cvs, with no chroot
  37. #user=rudy:011:01000: # rdist, with no chroot
  38. #user=rudy:011:10000: # rsync, with no chroot
  39. #user="rudy:011:00001:/usr/local/chroot" # whole user string can be quoted
  40. #user=rudy:01"1:00001:/usr/local/chroot" # or somewhere in the middle, freak!
  41. #user=rudy:'011:00001:/usr/local/chroot' # single quotes too
  42.  
  43. # if your chroot_path contains spaces, it must be quoted...
  44. # In the following examples, the chroot_path is "/usr/local/my chroot"
  45. #user=rudy:011:00001:"/usr/local/my chroot" # scp with chroot
  46. #user=rudy:011:00010:"/usr/local/my chroot" # sftp with chroot
  47. #user=rudy:011:00011:"/usr/local/my chroot" # both with chroot
  48.  
  49. # Spaces before or after the '=' are fine, but spaces in chrootpath need
  50. # quotes.
  51. #user = "rudy:011:00001:/usr/local/my chroot"
  52. #user = "rudy:011:00001:/usr/local/my chroot" # neither do comments at line end
  53.  
  54. # My User Configs:
  55. user=testman:011:10011:"/home/testman/" # rsync,scp,sftp with chroot
  56.  
  57. ========================================
  58. ERRORS:
  59. =========================================
  60.  
  61. testman@Hades:/home/gmarquez$ rsync -v testfiles.tgz testman@10.3.2.102:/new_testfiles.tgz
  62. testman@10.3.2.102's password:
  63.  
  64. insecure -e option not allowed.
  65. This account is restricted by rssh.
  66. Allowed commands: scp sftp rsync
  67.  
  68. If you believe this is in error, please contact your system administrator.
  69.  
  70. rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  71. rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement