Operating System - HP-UX
1833772 Members
2282 Online
110063 Solutions
New Discussion

remsh--wont work but doesn't give an error--I'm going crazy

 
SOLVED
Go to solution
Kirk Reindl
Frequent Advisor

remsh--wont work but doesn't give an error--I'm going crazy

How is this computerly possible?

# whoami
root
root@bg-omni[/home/techsup/creindk/Scripts]
# remsh b8mkesa1 ll -d /etc/sudoers*
-r--r----- 1 root root 1103 May 18 11:08 /etc/sudoers
-r--r----- 1 root root 984 Apr 26 10:13 /etc/sudoers.bak
root@bg-omni[/home/techsup/creindk/Scripts]
# remsh b8mkesa1 cp -rp /etc/sudoers /sudoers.bak
root@bg-omni[/home/techsup/creindk/Scripts]
# remsh b8mkesa1 ll -d /etc/sudoers*
-r--r----- 1 root root 1103 May 18 11:08 /etc/sudoers
-r--r----- 1 root root 984 Apr 26 10:13 /etc/sudoers.bak
root@bg-omni[/home/techsup/creindk/Scripts]
#


It is like the copy doesn't happen. I could try to do the cp locally, but I'm salty that this isn't working the way I expect. I got to be missing some very simple here. thanks in advance for help


2 REPLIES 2
harry d brown jr
Honored Contributor
Solution

Re: remsh--wont work but doesn't give an error--I'm going crazy

Well your COPY is going to the ROOT directory:

/sudoers.bak

Try:

remsh b8mkesa1 cp -rp /etc/sudoers /etc/sudoers.bak

live free or die
harry d brown jr
Live Free or Die
Kirk Reindl
Frequent Advisor

Re: remsh--wont work but doesn't give an error--I'm going crazy

I need to have my head examined.
Thanks