Hello -- I have noticed the following Rdist behavior.
If you have time,
can you please consider fixing this in the next rdist
release? Or let
me know if there is a work-around. Thank you.
--Jennifer Cranfill
Summary: If the remote shell returns any warnings,
then Rdist exits
without transferring files. Instead of exiting, Rdist
should check the
return code from the remote shell and only exit if the
remote shell is
failing. An example of this is when rsh is setup to
try to use kerberos,
and failing that to try .rhosts authentication. In
this situation, rshd
will always print a warning: "kshd: Permission
denied.", but it will
execute the given command and return a 0 return code:
[swdevFW-3][/tmp]> rsh swdevFW-2.ppd.pok.ibm.com hostname
kshd: Permission denied.
swdevFW-2
[swdevFW-3][/tmp]> echo $?
0
However, Rdist fails in this situation:
[swdevFW-3][/tmp]> /usr/sbin/rdist -P /usr/bin/rsh -c
/tmp/jen
swdevFW-2.ppd.pok.ibm.com:/tmp/jen
swdevFW-2.ppd.pok.ibm.com: rdist: Updating the host
swdevFW-2.ppd.pok.ibm.com.
swdevFW-2.ppd.pok.ibm.com: LOCAL ERROR: Unexpected
input from server:
"kshd: Permission denied.".
swdevFW-2.ppd.pok.ibm.com: updating of
swdevFW-2.ppd.pok.ibm.com finished