Re: scp -rp behavior(SOLVED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, March 1, 2015 11:08 am, Jonathan Billings wrote:
> On Sun, Mar 01, 2015 at 10:58:30AM -0600, Valeri Galtsev wrote:
>> Why "slash": /.thunderbird in case of your example? Because if you do
>> not
>> specify absolute path beginning with / the ssh daemon prepends your
>> relative path with its `pwd` it runs in, and its `pwd` is "/")
>
> I'm not sure I understand what you're saying here...
>
> Are you saying that if I run 'scp remotehost:.bashrc ." it will copy
> /.bashrc from remotehost, regardless of whether my $HOME on remotehost
> is /home/username ?
>

Well, I was wrong, and somebody already corrected the stupid idiot (me). I
forgot that the worker process is started as user=remote user with pwd=
user's home directory. So what I said about absolute path _necessary_ it
total nonsense. ;-( I guess I need more coffee in the morning on Sunday...

Valeri

++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux