Hello I am new to Hugo. I had cloned a git repo and was trying to run it using hugo serve
command.
I ran into an error related to the permissions of a svg file in public folder.
Error: error copying static files: open /Users/website/public/icons/carly.svg: permission denied
When I checked the permissions of all the files in that folder, I got:
total 80
-r--r--r--@ 1 me staff 943 Mar 24 21:21 carly.svg
-r--r--r--@ 1 me staff 358 Mar 24 21:21 check.svg
-r--r--r--@ 1 me staff 1535 Mar 24 21:21 copy.svg
-r--r--r--@ 1 me staff 1132 Mar 24 21:21 expand.svg
-r--r--r--@ 1 me staff 419 Mar 24 21:21 info.svg
-r--r--r--@ 1 me staff 1164 Mar 24 21:21 link.svg
-r--r--r--@ 1 me staff 536 Mar 24 20:09 moon.svg
-r--r--r--@ 1 me staff 1074 Mar 24 20:09 next.svg
-r--r--r--@ 1 me staff 556 Mar 24 21:21 order.svg
-r--r--r--@ 1 me staff 863 Mar 24 20:09 sun.svg
I gave the carly.svg
file write permissions for Owner (chmod 644 carly.svg
) and the project ran successfully withhugo serve
command.
Final permissions:
total 80
-rw-r--r--@ 1 me staff 943 Mar 24 21:21 carly.svg
-r--r--r--@ 1 me staff 358 Mar 24 21:21 check.svg
-r--r--r--@ 1 me staff 1535 Mar 24 21:21 copy.svg
-r--r--r--@ 1 me staff 1132 Mar 24 21:21 expand.svg
-r--r--r--@ 1 me staff 419 Mar 24 21:21 info.svg
-r--r--r--@ 1 me staff 1164 Mar 24 21:21 link.svg
-r--r--r--@ 1 me staff 536 Mar 24 20:09 moon.svg
-r--r--r--@ 1 me staff 1074 Mar 24 20:09 next.svg
-r--r--r--@ 1 me staff 556 Mar 24 21:21 order.svg
-r--r--r--@ 1 me staff 863 Mar 24 20:09 sun.svg
Now I have two questions:
- Why does only the
carly.svg
requires write permissions and not the other files? I can’t make sense of that. - What are these files? And how are they generated. Are they related to the theme used in the website?
Thank you.