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
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.
Re: How to take ownership of files recovered using testdisk
What do I put inplace of youruser? My user name?
Re: How to take ownership of files recovered using testdisk
Thanks. It worked perfectly the first try. You are a gentleman and a scholar.