View Single Post
  #6  
Old 12th December 2008, 17:13
unsichtbare unsichtbare is offline
Senior Member
 
Join Date: Sep 2007
Posts: 111
Thanks: 18
Thanked 6 Times in 5 Posts
Default

/home/someuser/rsync/checkrsync
Code:
#!/bin/shcase "$SSH_ORIGINAL_COMMAND" in        *\&*)                echo "Rejected"                ;;        *\(*)                echo "Rejected"                ;;        *\{*)                echo "Rejected"                ;;        *\;*)                echo "Rejected"                ;;        *\<*)                echo "Rejected"                ;;        *\`*)                echo "Rejected"                ;;        rsync\ --server*)                $SSH_ORIGINAL_COMMAND                ;;        *)                echo "Rejected"                ;;esac
~

-J
__________________
Ubuntu 14.04 - The Perfect Setup
ISPConfig 3.0.5
http://www.vmsources.com
Reply With Quote