Re: scp: no sharing violation while copying



Forje <forje.bemac@xxxxxxxxx> writes:

Hi all,
I am doing copies between linux and windows machines using scp.
As soon as a file is being copied (and all the time the copy lasts) on
the target machine, it is readable, deletable without any sharing violation.
How to prevent this behaviour?
Idealy I would like to have the file currently copied locked until the
copy is complete.

Locking is a software feature. It is an honour system. If someone really
wants to they can alter a locked file ( just ignore the lock)
However, rsync copies the file to a temporary file first
bugsbunny.Cfj89Kd
until it is copied over and then moves it to the correct location.
Still not perfect, but better.


Thank in advance.
--
Forje
.



Relevant Pages

  • Re: scp: no sharing violation while copying
    ... Unruh a écrit: ... I am doing copies between linux and windows machines using scp. ...
    (comp.security.ssh)
  • scp: no sharing violation while copying
    ... I am doing copies between linux and windows machines using scp. ... As soon as a file is being copied (and all the time the copy lasts) on the target machine, it is readable, deletable without any sharing violation. ...
    (comp.security.ssh)
  • Re: newb install new samba?
    ... >> about this very topic by more experienced folk, ... >> samba seems to be now available. ... local firewalls on the windows machines - I like to control exactly ... the linux machine now highlighted a problem with the ...
    (alt.os.linux.suse)
  • Re: IT time forMaintenance
    ... Desktop running Fedora Core 4 (Linux variety), and to be honest, I spend ... Ghost to do my backups on the Windows machines, and a BASH shell script to ... > the repercussions of such settings on the computers. ... How much time and how often should be allowed for maintenance. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Ubuntu 5.10 + How to connect to Internet
    ... I followed a few of the links, such as the one that told me the difference between a hardware modem and a software modem and how software modems were difficult to make work with Linux if possible at all. ... I ordered the Ubuntu CD's because I had read on various websites that Ubuntu was user friendly, easy to setup, great for Windows users who may want to switch over and give Linux a try, etc... ... I have used Windows machines for over 10 years and thought that I knew a little about computers, not any deep, low level knowledge, but fairly capable on a Windows machine anyway. ...
    (comp.os.linux.setup)