|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
##### Obackup & Osync ssh command filter build 2408201301
|
|
|
|
##### Osync ssh command filter build 2015070201
|
|
|
|
##### This script should be located in /usr/local/bin in the remote system to sync / backup
|
|
|
|
##### This script should be located in /usr/local/bin in the remote system to sync / backup
|
|
|
|
##### It will filter the commands that can be run remotely via ssh.
|
|
|
|
##### It will filter the commands that can be run remotely via ssh.
|
|
|
|
##### Please chmod 755 and chown root:root this file
|
|
|
|
##### Please chmod 755 and chown root:root this file
|
|
|
@ -33,10 +33,6 @@ function Go
|
|
|
|
case ${SSH_ORIGINAL_COMMAND%% *} in
|
|
|
|
case ${SSH_ORIGINAL_COMMAND%% *} in
|
|
|
|
"$RSYNC_EXECUTABLE")
|
|
|
|
"$RSYNC_EXECUTABLE")
|
|
|
|
Go ;;
|
|
|
|
Go ;;
|
|
|
|
"mysqldump")
|
|
|
|
|
|
|
|
Go ;;
|
|
|
|
|
|
|
|
"mysql")
|
|
|
|
|
|
|
|
Go ;;
|
|
|
|
|
|
|
|
"echo")
|
|
|
|
"echo")
|
|
|
|
Go ;;
|
|
|
|
Go ;;
|
|
|
|
"find")
|
|
|
|
"find")
|
|
|
|