[email protected] wrote on 23.06.2010 13:31:56:

> James Corteciano <[email protected]> 
> Gesendet von: [email protected]
> 
> 23.06.2010 13:32
> 
> Bitte antworten an
> CentOS mailing list <[email protected]>
> 
> An
> 
> CentOS mailing list <[email protected]>
> 
> Kopie
> 
> Thema
> 
> [CentOS] umask not functioning with cp command
> 
> Hi all,
> 
> $ umask 0002
> $ mkdir test
> $ ls -ld test
> drwxrwxr-x 2 user user 4096 Jun 23 19:04 test/
> 
> $ls -ld content
> drwxr-xr-x 2 user user 4096 Jun 23 19:29 content
> 
> $ cp -r content test/
> $ls -ld test/content
> drwxr-xr-x 2 user user 4096 Jun 23 19:29 content
> 
> My question is, how can I make content directory permission mode to 
> 775 if I do cp inside the test directory?
> 
> Thanks.
> 
> Regards,
> James
> 
> _______________________________________________
> CentOS mailing list
> [email protected]
> http://lists.centos.org/mailman/listinfo/centos

Hi James,
in this case, you must copy with cp -p (or better -a same -dpR) to 
preserve all atributes.

man cp

Gruß 
Andreas Reschke
________________________________________________________________
BG-IM173
Unix/Linux-Administration
 
Behr GmbH & Co. KG
_______________________________________________
CentOS mailing list
[email protected]
http://lists.centos.org/mailman/listinfo/centos

Reply via email to