I keep getting this error every time i save a new file (see attached)
Hope can i make it so i dont keep seeing this?
-
- Posts: 18
- Joined: Fri Dec 29, 2017 6:39 pm
Error Saving FIle
- Attachments
-
- permission.PNG (30.58 KiB) Viewed 3640 times
Re: Error Saving FIle
Please read the error message carefully.
It says "permission denied" which is usually enough.
Please see this recent thread on the same topic:-
viewtopic.php?f=91&t=58451
which might help.
It says "permission denied" which is usually enough.
Please see this recent thread on the same topic:-
viewtopic.php?f=91&t=58451
which might help.
-
- Posts: 18
- Joined: Fri Dec 29, 2017 6:39 pm
Re: Error Saving FIle
Thank you for that, so is there no way to make it so you dont have to do it to every folder path?
Re: Error Saving FIle
Well you can, (chmod -R or chown -R see man chown and man chmod). However I think it is a dangerous and BAD idea.TheTwister wrote: ↑Sat Jan 12, 2019 4:37 pmThank you for that, so is there no way to make it so you dont have to do it to every folder path?
Edit the file in your home directory, then when you want to publish it, do something like:-
sudo cp myfile.html /var/www/html
Sudo (man sudo) briefly gives you the extra permission to copy the file into the protected area.
-
- Posts: 18
- Joined: Fri Dec 29, 2017 6:39 pm
Re: Error Saving FIle
Okay thanks i will get that a go. I dont have much knowledge in command line. Do you know any useful tutorials for beginners?
Re: Error Saving FIle
For introductions to the command line have a look at https://www.edx.org or the RPF book https://www.raspberrypi.org/blog/learn- ... the-magpi/. (Free as a pdf or pay for the book and help support the foundation).
The other way to sort your file copy problem is to add your user (I assume Pi) to the www-data group using
This is safer than changing the security of the files / folders esp if you are putting the site on the public internet - if so have a look at the security docs here https://www.raspberrypi.org/documentati ... ecurity.md. notes these do not cover web site security as that’s a different game 
The other way to sort your file copy problem is to add your user (I assume Pi) to the www-data group using
Code: Select all
sudo usermod -a -G www-data pi
