0

Lamp is installed on my home machine and will never be for public viewing. I'm learning to program.

When I code in Notepadqq and try to save the file var/www/html/ I get permission denied. So, I used this command in terminal:

sudo chmod 766 -R /var/www/html 

In the example I was copying, this command was given:

sudo chown pi /var/www/html 

I got this from terminal in response.

chown: invalid user: ‘pi’ 

I then realised pi was not my name, so I then tried

sudo chown Bobby /var/www/html

as Bobby is my name. But I still got

chown: invalid user: ‘Bobby’

So I tried this

sudo chmod 766 -r /var/www/html

as per the example. But I got

chmod: cannot access '766': No such file or directory

Eish.

All I would like to do is to be able save the programming I am learning in that file so I can load it through the apache server which is up and running.

Help please

Zanna
  • 72,312
Bobby
  • 31
  • 2

1 Answers1

0

You can run the file manager in super user mode by the following command in terminal gksudo nautilus

or please follow instruction from here. https://askubuntu.com/a/55365/546041

Thank You

smehsan
  • 756