0

I have this error:

chown: missing operand after 'www-data:www-data/var/www/'

enter image description here

karel
  • 110,292
  • 102
  • 269
  • 299
Kissanth
  • 1
  • 1
  • [Please don't post images of text.](https://meta.askubuntu.com/q/8713/566421) Instead, paste the text directly into your question and use the [formatting tools](https://askubuntu.com/help/formatting). This goes double when you're asking for help on a script. Surely you don't expect us to copy that line by line in order to try to run it and identify the problems! – pa4080 Nov 24 '19 at 17:03

1 Answers1

2

There is a missing white space in your command. Probably you want to:

sudo chown -R www-data:www-data /var/www/

In your case, the chown command will search for a group called www-data/var/www/ (that is threat as single string), and complains about a missing argument - the target path.

pa4080
  • 29,351
  • 10
  • 85
  • 161