LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RDIST problems... (https://www.linuxquestions.org/questions/linux-newbie-8/rdist-problems-37896/)

WeNdeL 12-10-2002 03:42 PM

RDIST problems...
 
i am trying to perform a simple distribution to a number of servers... my dist file is as such:
Code:

HOSTS=( backup@appserver backup@develop backup@lanserver backup@mcveserver backup@opserver backup@penguin2 backup@prodserver backup@backup1 backup@saleserver backup@web1 backup@web5 )

FILE=( /home/backup/scripts/usage-info.sh )

${FILE} -> ${HOSTS}
        install /home/backup/scripts/usage-info.sh ;
        special "/bin/bash /home/backup/scripts/usage-info.sh" ;
        notify wendels@mydomain.com ;

I am basically experimenting with gathering info from my servers by distributing a script that emails me info and then having rdist run it on the remote server...

the problem is this... it only works on two of those servers... i have spent a lot of time trying to solve this mystery and was hoping you all could help...

the output:
Code:

backup@appserver: updating host appserver
backup@develop: updating host develop
backup@lanserver: updating host lanserver
backup@mcveserver: updating host mcveserver
backup@appserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@appserver: updating of backup@appserver finished
backup@lanserver: /home/backup/scripts/usage-info.sh: installing
backup@opserver: updating host opserver
backup@develop: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@develop: updating of backup@develop finished
backup@lanserver: special "/bin/bash /home/backup/scripts/usage-info.sh"
backup@penguin2: updating host penguin2
backup@opserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@opserver: updating of backup@opserver finished
backup@penguin2: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@penguin2: updating of backup@penguin2 finished
backup@prodserver: updating host prodserver
backup@backup1: updating host backup1
backup@lanserver: notify @backup@lanserver ( wendels@mydomain.com )
backup@backup1: /home/backup/scripts/usage-info.sh: installing
backup@backup1: special "/bin/bash /home/backup/scripts/usage-info.sh"
backup@prodserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@prodserver: updating of backup@prodserver finished
backup@backup1: notify @backup@backup1 ( wendels@mydomain.com )
backup@saleserver: updating host saleserver
backup@saleserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@saleserver: updating of backup@saleserver finished
backup@lanserver: updating of backup@lanserver finished
backup@web1: updating host web1
backup@web5: updating host web5
backup@backup1: updating of backup@backup1 finished
backup@mcveserver: LOCAL ERROR: Unexpected input from server: "mcveserver: Connection refused".
backup@mcveserver: updating of backup@mcveserver finished
backup@web1: LOCAL ERROR: Unexpected input from server: "web1: Connection refused".
backup@web1: updating of backup@web1 finished
backup@web5: LOCAL ERROR: Unexpected input from server: "web5: Connection refused".
backup@web5: updating of backup@web5 finished

backups uid and gid is the same across all of these servers...

i have looked at the hosts.equiv file as well and having entries in that doesn't seem to help...

could pam have something to do with this? plz help...

WeNdeL 12-11-2002 08:16 AM

bump...

art_yomov 05-09-2014 02:56 PM

Quote:

Originally Posted by WeNdeL (Post 181963)
i am trying to perform a simple distribution to a number of servers... my dist file is as such:
Code:

HOSTS=( backup@appserver backup@develop backup@lanserver backup@mcveserver backup@opserver backup@penguin2 backup@prodserver backup@backup1 backup@saleserver backup@web1 backup@web5 )

FILE=( /home/backup/scripts/usage-info.sh )

${FILE} -> ${HOSTS}
        install /home/backup/scripts/usage-info.sh ;
        special "/bin/bash /home/backup/scripts/usage-info.sh" ;
        notify wendels@mydomain.com ;

I am basically experimenting with gathering info from my servers by distributing a script that emails me info and then having rdist run it on the remote server...

the problem is this... it only works on two of those servers... i have spent a lot of time trying to solve this mystery and was hoping you all could help...

the output:
Code:

backup@appserver: updating host appserver
backup@develop: updating host develop
backup@lanserver: updating host lanserver
backup@mcveserver: updating host mcveserver
backup@appserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@appserver: updating of backup@appserver finished
backup@lanserver: /home/backup/scripts/usage-info.sh: installing
backup@opserver: updating host opserver
backup@develop: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@develop: updating of backup@develop finished
backup@lanserver: special "/bin/bash /home/backup/scripts/usage-info.sh"
backup@penguin2: updating host penguin2
backup@opserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@opserver: updating of backup@opserver finished
backup@penguin2: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@penguin2: updating of backup@penguin2 finished
backup@prodserver: updating host prodserver
backup@backup1: updating host backup1
backup@lanserver: notify @backup@lanserver ( wendels@mydomain.com )
backup@backup1: /home/backup/scripts/usage-info.sh: installing
backup@backup1: special "/bin/bash /home/backup/scripts/usage-info.sh"
backup@prodserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@prodserver: updating of backup@prodserver finished
backup@backup1: notify @backup@backup1 ( wendels@mydomain.com )
backup@saleserver: updating host saleserver
backup@saleserver: LOCAL ERROR: Unexpected input from server: "Permission denied.".
backup@saleserver: updating of backup@saleserver finished
backup@lanserver: updating of backup@lanserver finished
backup@web1: updating host web1
backup@web5: updating host web5
backup@backup1: updating of backup@backup1 finished
backup@mcveserver: LOCAL ERROR: Unexpected input from server: "mcveserver: Connection refused".
backup@mcveserver: updating of backup@mcveserver finished
backup@web1: LOCAL ERROR: Unexpected input from server: "web1: Connection refused".
backup@web1: updating of backup@web1 finished
backup@web5: LOCAL ERROR: Unexpected input from server: "web5: Connection refused".
backup@web5: updating of backup@web5 finished

backups uid and gid is the same across all of these servers...

i have looked at the hosts.equiv file as well and having entries in that doesn't seem to help...

could pam have something to do with this? plz help...


Hello. I have same problem on my CentOS server. Please, could you say, did you solve the problem?
There is my distfile.
Code:

FILES = ( /tmp/test/1 /tmp/test/2 )
HOSTS = ( root@wks1 )
${FILES} -> ${HOSTS}
install;

I tried this on just installed servers too (on the virtual machine). I don't understand, why it doesn't work.
Apologize for my poor English.

art_yomov 05-14-2014 01:42 AM

Solved it.
i had to crate link /usr/bin/rdistd -> /sbin/rdistd.


All times are GMT -5. The time now is 06:24 PM.