On 7 Sep 2005 03:57:36 -0700,
gildasp.pasdespam@laposte.net <gildasp.pasdespam@laposte.net> wrote:
> Hi Steven and thanks a lot for your answer. In fact, the solution you
> have given doesn't solve the problem. I can see that the file in
> /source_dir is :
>
> -rw-r----- 1 cft230 cft 946 Sep 07 00:01
> file
>
> and the file moved in /dest_dir is :
>
> -rw-r----- 1 admd2a01 pscrm 946 Sep 07 00:01
> file
>
> Any other idea ?
>
If source and destination is in the same file system then mv will be a
simple rename which doesn't do anything to the owner and mode of the file.
However, if the file is moved to a different file system then mv first
copies the file and then deletes the original. As only superuser is
allowed to modfy the file ownership the destination file will become
owned by whoever moved it, and that is what the warning is about.
Villy