cancel
Showing results for 
Search instead for 
Did you mean: 

Temporary Permission commands taking too long

Temporary Permission commands taking too long

Hi,

 

I want to install an extension to my magento CE 1.9.1 and used these commands

find . -type d -exec chmod 700 {} \;

find . -type f -exec chmod 600 {} \;

 

However the find . -type f -exec chmod 600 {} \; just returned a prompt blinking. it's been almost 24 hours already but still on the prompt and didn't return me to command prompt. Anybody knows how to deal with this problem? 

5 REPLIES

Re: Temporary Permission commands taking too long

How about using chmod -R go-rwx * instead? It recursively removes all privileges from group and others. And it should be WAY faster.

Tanel Raja

Re: Temporary Permission commands taking too long

I'm sorry, im still new to grasping permission commands for ubuntu.

 

so the new command will be find . -type f -exec chmod -R go-rwx * {} \; ?

Re: Temporary Permission commands taking too long

Actually this is it, chmod is command, -r means recursive and go-rwx means remove all privileges from group and others. However I'm not sure what you want to achieve as 600/700 means that you're planning to establish a rather draconic permission scheme.

Tanel Raja

Re: Temporary Permission commands taking too long

just wanted to install an extension and i'll bring it back to magento suggested permissions.

 

These are the recommended permissions

 

find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \; 
find var/ -type f -exec chmod 600 {} \; 
find media/ -type f -exec chmod 600 {} \;
find var/ -type d -exec chmod 700 {} \; 
find media/ -type d -exec chmod 700 {} \;

 If i type the command find . -type f -exec chmod 400 {} \;

it just give me a blinking cursor and doesn't return to command prompt.

is there another command that doesn't freeze?

Re: Temporary Permission commands taking too long

These are definitely not recommend permissions. It means that either you're logged on as web server user or web server runs with your user privileges. Very bad idea either way.

Tanel Raja