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.

4
  • Creating the www-data user... Commented Jun 12, 2014 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. Commented Jun 13, 2014 at 2: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. Commented Jun 13, 2014 at 2:03
  • If you're using a Debian-based distro, you should have a www-data user. I'd figure out why you don't. Commented Jun 13, 2014 at 2:05

1 Answer 1

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.

3
  • do you mean I need to check for the user id : www-data ???? Commented Jun 13, 2014 at 1:45
  • i found it (www-data) some where in the web as it is used to change the user permissions. Commented Jun 13, 2014 at 1:47
  • 1
    @GIRI I have no idea of what are you doing.... really. Commented Jun 13, 2014 at 1:55

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.