Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this correct to re-set up permissions for Rails app?

I made the new user called "rails"
Then owner and group of all the directories and files are set to "rails"

I do have the appliation in /var/www/html/app

So I should do $ cd /var/www/html/app and execute this?

find . -type d | xargs chmod 0755 and find . -type f | xargs chmod 0644

Is it going to set up permission for everything, and it'll be all fine?

like image 489
HUSTEN Avatar asked Feb 15 '13 10:02

HUSTEN


1 Answers

Assuming /var/www/html/app is the app folder for a rails application located at /var/www/html, you should be running

cd /var/www/html

find . -type d | xargs chmod 0755

find . -type f | xargs chmod 0644

You might be literally interpreting 'and' incorrectly.

like image 73
Benjamin Avatar answered Sep 28 '22 00:09

Benjamin