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

Re: copying a file with appropriate permission



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 31 October 2001 04:43 am, 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.

cp -a should do what you want.

- -D

- -- 

pgp key:  http://www.tuxfan.homeip.net:8080/pgpkey.txt

- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE73+fieMAUbzJhSVcRAr8BAKCRzjT1mEjRXIqXjcYzA48Pfw5XoACfbBOC
jexGKQKrkjYqqBeL7SoJWEU=
=4qFP
-----END PGP SIGNATURE-----





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