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

Re: copying a file with appropriate permission



On Wed, 31 Oct 2001 muthupandi radisoft com wrote:

> how to copy a file with appropriate permission in linux. instead of move.
>
> my problem is i want to copy all the users
> mails(var/spool/mail/*)into a new hdd. if i cp the files it is
> changing the permission to root. i don't want to mv.
>
> thanks,
> Muthupandi
>
>
Try cp -a instead of cd.  Or try rsync -a.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.






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