Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@san-gerrit ~]# cat /etc/rssh.conf
- # This is the default rssh config file
- # set the log facility. "LOG_USER" and "user" are equivalent.
- logfacility = LOG_USER
- # Leave these all commented out to make the default action for rssh to lock
- # users out completely...
- #allowscp
- #allowsftp
- #allowcvs
- #allowrdist
- #allowrsync
- # set the default umask
- umask = 022
- # If you want to chroot users, use this to set the directory where the root of
- # the chroot jail will be located.
- #
- # if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT.
- # chrootpath = /usr/local/chroot
- # You can quote anywhere, but quotes not required unless the path contains a
- # space... as in this example.
- #chrootpath = "/usr/local/my chroot"
- #chrootpath = "/home/testman"
- ##########################################
- # EXAMPLES of configuring per-user options
- #user=rudy:077:00010: # the path can simply be left out to not chroot
- #user=rudy:077:00010 # the ending colon is optional
- #user=rudy:011:00100: # cvs, with no chroot
- #user=rudy:011:01000: # rdist, with no chroot
- #user=rudy:011:10000: # rsync, with no chroot
- #user="rudy:011:00001:/usr/local/chroot" # whole user string can be quoted
- #user=rudy:01"1:00001:/usr/local/chroot" # or somewhere in the middle, freak!
- #user=rudy:'011:00001:/usr/local/chroot' # single quotes too
- # if your chroot_path contains spaces, it must be quoted...
- # In the following examples, the chroot_path is "/usr/local/my chroot"
- #user=rudy:011:00001:"/usr/local/my chroot" # scp with chroot
- #user=rudy:011:00010:"/usr/local/my chroot" # sftp with chroot
- #user=rudy:011:00011:"/usr/local/my chroot" # both with chroot
- # Spaces before or after the '=' are fine, but spaces in chrootpath need
- # quotes.
- #user = "rudy:011:00001:/usr/local/my chroot"
- #user = "rudy:011:00001:/usr/local/my chroot" # neither do comments at line end
- # My User Configs:
- user=testman:011:10011:"/home/testman/" # rsync,scp,sftp with chroot
- ========================================
- ERRORS:
- =========================================
- testman@Hades:/home/gmarquez$ rsync -v testfiles.tgz testman@10.3.2.102:/new_testfiles.tgz
- testman@10.3.2.102's password:
- insecure -e option not allowed.
- This account is restricted by rssh.
- Allowed commands: scp sftp rsync
- If you believe this is in error, please contact your system administrator.
- rsync: connection unexpectedly closed (0 bytes received so far) [sender]
- 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