0

I trying to chown the directory for changing the permissions of the directory. But it shows some error as unknown user id

I tried to chown using the command : chown -R www-data [directory name]

it shows the error as unknown user id www-data

How to get rid of this.

Braiam
  • 35,991
GIRI
  • 877
  • Creating the www-data user... – vonbrand Jun 12 '14 at 23:21
  • I'm guessing you're using a guide for a Debian-based distro which has a www-data user, except you're trying to use the guide on a distro that doesn't have that user. Please point to the guide and tell us what distro you're using. – derobert Jun 13 '14 at 02:00
  • yes, you are true. I'm using Debian-based distro, actually this problem occurred in webdesigning in drupal. I couldn't get write permissions for a directory. – GIRI Jun 13 '14 at 02:03
  • If you're using a Debian-based distro, you should have a www-data user. I'd figure out why you don't. – derobert Jun 13 '14 at 02:05

1 Answers1

3

Your problem is simple, that user/id doesn't exist:

$ chown adsfadsf files
chown: invalid user: ‘adsfadsf’

Verify the user exist and try again.

Braiam
  • 35,991