coreutils
[Top][All Lists]
Advanced

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

Cmd mv: Owner/group copy


From: Filip Kocina
Subject: Cmd mv: Owner/group copy
Date: Tue, 05 Feb 2013 09:31:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121026 Thunderbird/10.0.10

Hi all,

I'd like to ask you why the owner and the group of a file is retained
while moving a file via mv. I was surprised when I made a file as root
in home directory of another user and moved this file as this another
user into /tmp. I mean the preservation is rather logical, but if this
another user renamed this file to a not very smooth-tongued name, the
user who owns this file could be compromised. I know there is an easy
solution: not to move file into a directory of another user, but still,
this behavior of mv is little weird for me.

Thank you in advance for explanation.

-- 
Filip Kocina
E-mail: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]