Results 1 to 4 of 4

Thread: How to take ownership of files recovered using testdisk

  1. #1
    Join Date
    Jun 2012
    Beans
    42

    Unhappy How to take ownership of files recovered using testdisk

    I recovered filed from a deleted partition using testdisk. The program was easy to use and did exactly what it promised. HOWEVER, the recovered files are now in folders that are owned by root. How can I take ownership of these photos, videos and mp3's so I can deleted, copy, or edit them?

    I don't know how to change permissions when I'm not root. I realize I can do this in a terminal, but I don't know the commands.

    Thanks in advance for the usual timely and knowledgeable advice.

    Patagriff, locked myself out in Tacoma

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,697
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to take ownership of files recovered using testdisk

    Hi patagriff.

    To change ownership of a file back to you:
    Code:
    sudo chown youruser:youruser  file
    Or to change recursively all files and directories (probably what you need):
    Code:
    sudo chown -R youruser:youruser  directory/
    Hope it helps. Let us know how it goes.
    Regards.

  3. #3
    Join Date
    Jun 2012
    Beans
    42

    Re: How to take ownership of files recovered using testdisk

    What do I put inplace of youruser? My user name?

  4. #4
    Join Date
    Jun 2012
    Beans
    42

    Re: How to take ownership of files recovered using testdisk

    Thanks. It worked perfectly the first try. You are a gentleman and a scholar.

Tags for this Thread

Bookmarks

Posting Permissions

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