Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Setting permissions

Started by gravus 9 years ago · 0 replies · 1179 views
9 years ago

After transferring a new site to my Linode server, I tried setting the permissions following the instructions from https://learn.getgrav.org/troubleshooting/permissions with these commands from the permissions-fixing shell script (I changed joeblow:staff to the correct values):

BASH
sudo chown -R joeblow:staff .
sudo find . -type f | xargs chmod 664
sudo find ./bin -type f | xargs chmod 775
sudo find . -type d | xargs chmod 775
sudo find . -type d | xargs chmod +s

However I got a lot of these errors:

BASH
chmod: cannot access ‘./user/themes/deliver/fonts/Novecento’: No such file or directory
chmod: cannot access ‘sans’: No such file or directory
chmod: cannot access ‘wide’: No such file or directory

The commands in this format worked better:

BASH
sudo chown -R joeblow:staff .;
sudo find . -type f -exec chmod u=rw,g=rw,o=r '{}' \;
sudo find ./bin -type f -exec chmod u=rwx,g=rwx,o=rx '{}' \;
sudo find . -type d -exec chmod u=rwx,g=rwx,o=rx '{}' \;
sudo find . -type d -exec chmod +s '{}' \;

New format from Securing file permissions and ownership (Drupal)

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 19 hours ago
7 72 49 minutes ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 65 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 65 8 months ago
Installation & Hosting · by N, 12 months ago
3 76 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 64 1 year ago