Find the answer to your Linux question:
Results 1 to 4 of 4
Does anyone know how to change a file´s ownership?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    32

    Ownership


    Does anyone know how to change a file´s ownership?

  2. #2
    Banned
    Join Date
    Jul 2004
    Posts
    947
    from command line as root

    Code:
    chown (username): /file/location
    for example

    Code:
    chown andy: /etc/ircd

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    For the record, the colon after the user's name is not necessary. What that does is also change the file to the user's group.

    While it is recommended, if, for some reason, you don't want to do that, you could just say:

    Code:
    chown alex my_file

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Posts
    32
    Thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •