unable to chown a directory recursiverly "unknown user id"

5,299

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

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

Verify the user exist and try again.

Share:
5,299

Related videos on Youtube

GIRI
Author by

GIRI

Updated on September 18, 2022

Comments

  • GIRI
    GIRI almost 2 years

    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.

    • vonbrand
      vonbrand about 10 years
      Creating the www-data user...
    • derobert
      derobert about 10 years
      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.
    • GIRI
      GIRI about 10 years
      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.
    • derobert
      derobert about 10 years
      If you're using a Debian-based distro, you should have a www-data user. I'd figure out why you don't.
  • GIRI
    GIRI about 10 years
    do you mean I need to check for the user id : www-data ????
  • GIRI
    GIRI about 10 years
    i found it (www-data) some where in the web as it is used to change the user permissions.
  • Ludwig Schulze
    Ludwig Schulze about 10 years
    @GIRI I have no idea of what are you doing.... really.