Just installed Ubuntu 18.10 and I have realized that when trying to open VS code and save a file it will throw a permission denied error. It also does this when trying to delete files, not only write to them.
I understand you could launch the application as sudo but I've been told this is not advised, could someone tell me what the best way to do this is, without breaking any major rules?
It's my first time with Ubuntu and I've only tried using it as I was told its pretty neat for web development, apologies if this is a novice question and has an easy answer.
index.php
in/var/www/html
, the document root for my website. – Lee Nelson Jan 08 '19 at 01:54/var/www/html
? By default, that directory belongs toroot
. – AlexP Jan 08 '19 at 01:56Failed to save 'index.php': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.
, clicking the retry button simply reiterates the error message. – Lee Nelson Jan 08 '19 at 02:30