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

Re: umask not functioning with cp command



Copy with -p switch - which will keep permissions.

On Wed, Jun 23, 2010 at 6:31 AM, James Corteciano <james linux-source org>wrote:

> 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
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
Alan A.


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