Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Preserving Ownership with File::Copy::Recursive

by zentara (Archbishop)
on Oct 11, 2012 at 12:24 UTC ( #998430=note: print w/ replies, xml ) Need Help??


in reply to Preserving Ownership with File::Copy::Recursive

And I get: ls -l ./foo

Shouldn't that second ls be for ./foo2? I do see the tcat change. It seems normal behavior to me, that ownership goes to whoever is doing the copy. For instance, if you copy some root files to your homedir, ownership will given to the owner of the homedir, unless the copy is done by root. You would be violating the principles of su and sudo otherwise, i.e. escalation of priviledges could occur. But I may be wrong. ;-)


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re: Preserving Ownership with File::Copy::Recursive
Re^2: Preserving Ownership with File::Copy::Recursive
by xorl (Deacon) on Oct 11, 2012 at 12:52 UTC

    Yes that was a typo. It should have been ls -l ./foo2.

    The script will be run by root.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-09-21 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls