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

Re: copying a file with appropriate permission



Use the cp command as

cp -pRv <Original Filename> <File to be copied to the new location>

Your file permissions will remain intact.

-Rupesh

----- Original Message -----
From: <muthupandi radisoft com>
To: <redhat-list redhat com>
Sent: Wednesday, October 31, 2001 3:13 PM
Subject: copying a file with appropriate permission


> 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
>





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