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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With