Tilde trauma

2007-12-25 6:02:00

I'm encountering a failure with rcp using the ~username syntax for the ta=
rget of the copy. The failure is on a new host recently setup, so I'm thi=
nking it may be a config issue. I have a number of Solaris 9 servers, r=
easonably current on patches. I'm under a time crunch on resolving this.=
Does anyone see something or know of some config issue that I am missin=
g? =0D=0A
=0D=0A
mmarb0x is a root equiv and both have identical .rhosts files on the targ=
et host. The rcp with the given homedir of /roothome/mmarb0x works, but u=
sing ~mmarb0x fails.=0D=0A
=0D=0A
Below is what I see, using a simple do loop:=0D=0A
=0D=0A
*** script ***=0D=0A
suhou-uxora01p:(18086):/roothome/mmarb0x #cat ktest; ktest=0D=0A
set -x=0D=0A
for h in suhou-uxora01p suhou-uxapp01p suhou-uxapp02p suhou-uxora01d suho=
u-uxora02d sudal-uxora01p sudal-uxapp01p suhou-uxiam01d=0D=0A
do=0D=0A
rcp -p ~mmarb0x/.kshrc $h:~mmarb0x/.kshrc=0D=0A
done=0D=0A
echo show that copy without tilde works...=0D=0A
for h in suhou-uxiam01d=0D=0A
do=0D=0A
rcp -p ~mmarb0x/.kshrc $h:/roothome/mmarb0x/.kshrc=0D=0A
done=0D=0A
=0D=0A
***output***=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxora01p:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxapp01p:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxapp02p:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxora01d:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxora02d:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc sudal-uxora01p:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc sudal-uxapp01p:~mmarb0x/.kshrc=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxiam01d:~mmarb0x/.kshrc=0D=0A
rcp: ~mmarb0x/.kshrc: No such file or directory=0D=0A
+ echo show that copy without tilde works...=0D=0A
show that copy without tilde works...=0D=0A
+ rcp -p /roothome/mmarb0x/.kshrc suhou-uxiam01d:/roothome/mmarb0x/.kshrc=
=0D=0A
suhou-uxora01p:(18086):/roothome/mmarb0x #=0D=0A
=0D=0A
=0D=0A
ON THE TARGET HOST: the .rhosts files and the mmarb0x passwd entry showin=
g the home dir...=0D=0A
=0D=0A
suhou-uxiam01d:(8176):/roothome/mmarb0x #ll ~root/.rhosts ~mmarb0x/.rhost=
s=0D=0A
-rw------- 1 root other 160 Mar 24 13:42 /roothome/mmarb0x/.=
rhosts=0D=0A
-rw------- 1 root other 160 Mar 24 13:42 /roothome/root/.rho=
sts=0D=0A
=0D=0A
suhou-uxiam01d:(8176):/roothome/mmarb0x #grep mmarb0x /etc/passwd=0D=0A
mmarb0x:x:0:1:Mike Marburger:/roothome/mmarb0x:/bin/ksh=0D=0A
=0D=0A
=0D=0A
=0D=0A
The information in this e-mail, and any files transmitted with it, is int=
ended for the exclusive use of the recipient(s) to which it is addressed =
and may contain confidential, proprietary or privileged information. If =
you are not an intended recipient, you have received this transmission in=
error and any use, review, dissemination, distribution, printing or copy=
ing of this information is strictly prohibited. If you have received thi=
s e-mail in error, please notify the sender immediately of the erroneous =
transmission by reply e-mail, immediately delete this e-mail and all elec=
tronic copies of it from your system and destroy any hard copies of it th=
at you may have made. Thank you.=0D=0A

Comments

Got something to say?

You must be logged in to post a comment.