How to change the permissions of files in a directory recursively

Jim jf_byrnes at comcast.net
Mon Apr 24 18:58:12 UTC 2017


On 04/24/2017 01:25 PM, Nerijus Kriaučiūnas wrote:
> Hi,
>
> Have you tried chown -R /var/www/html/foo/* ?
>
> ⁣Sent from BlueMail ​

No, I hadn't tried that and it did what I needed.

Thanks, Jim

>
> On 24 Apr 2017, 21:16, at 21:16, Jim <jf_byrnes at comcast.net> wrote:
>> How can I leave the permission of a directory at 755 and change the
>> permissions of all of it's files to 766? Everything I have tried and
>> what I have found googling ends up setting the dir and file permissions
>>
>> the same.
>>
>> So if I have /var/www/html/foo/  I want foo to remain at 755 and files
>> in foo to change to 766.
>>
>> Thanks,  Jim
>>
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>






More information about the ubuntu-users mailing list