Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: Ownership

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Ownership


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

  2. #2
    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. $spacer_open
    $spacer_close
  5. #4
    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
  •