Dec 22: Changing the permissions of files separately from directories
Sometimes you need to make use of several sources of knowledge to come out on top of a problem. Here's one such example, for my own reference. I didn't want to run "chmod -R 755 *" because all of my files would have the execute flag, instead of just the directories. Here's how to solve it (e-mail thread: read from the bottom up.
Matt,
Desquinn on the forums came back with this. It worked perfectly, so you might want to add it to your arsenal of house-keeping scripts. Just run these commands in turn:
$ find . -type d -exec chmod 755 {} \;
$ find . -type f -exec chmod 644 {} \;
Thanks for your help: problem resolved.
J.
UnitedHosting - Support Department wrote:
> Hello
>
> I dont know of a simple way to find where the permission is wrong other than to check each stage of all the files and folders this particulart component could be using, starting with most obvious such as the upload directory and the script that performs the upload.
>
> Maybe someone on the forums knows of a better way to do such a task.
>
> Regards,
> Matt
> UH Support
Matt,
Desquinn on the forums came back with this. It worked perfectly, so you might want to add it to your arsenal of house-keeping scripts. Just run these commands in turn:
$ find . -type d -exec chmod 755 {} \;
$ find . -type f -exec chmod 644 {} \;
Thanks for your help: problem resolved.
J.
UnitedHosting - Support Department wrote:
> Hello
>
> I dont know of a simple way to find where the permission is wrong other than to check each stage of all the files and folders this particulart component could be using, starting with most obvious such as the upload directory and the script that performs the upload.
>
> Maybe someone on the forums knows of a better way to do such a task.
>
> Regards,
> Matt
> UH Support
« previous page
(Page 1 of 1, totaling 1 entries)
next page »

