Backup Harddive permission [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Backup Harddive permission [SOLVED]

Postby apermath on Sun Aug 16, 2009 10:07 am

Greetings.
I had backed up all my music, movies, pictures, and roms to a 60gig ata internal drive to do a clean format on my 120gig. I now want to copy the data from the 60 to the 120, but a) only root can move them (alright, can handle that) b) i cannot figure out how to change from root to the user account, so that I can access them without rooting. thanks
Last edited by apermath on Wed Aug 19, 2009 12:08 pm, edited 1 time in total.
apermath
Level 1
Level 1
 
Posts: 12
Joined: Thu Jun 25, 2009 9:16 pm
Location: Cape Cod, MA

Linux Mint is funded by ads and donations.
 

Re: Backup Harddive permission

Postby lagagnon on Sun Aug 16, 2009 10:52 am

Use the terminal to do the copy and use the "cp" command with the -p switch - that will preserve all the file attributes including ownership, e.g:

cp -p *.mp3 /home/me/Music/

for more information on cp read "man cp".
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Backup Harddive permission

Postby apermath on Sun Aug 16, 2009 12:28 pm

the data i have is in an extensive tree with many extention types. This does not seem to resolve my issue, but I had not known about the -p switch; good to know. any other ideas to take one Dir, full of everything, and recursively change the ownership?
apermath
Level 1
Level 1
 
Posts: 12
Joined: Thu Jun 25, 2009 9:16 pm
Location: Cape Cod, MA

Re: Backup Harddive permission

Postby oboedad55 on Sun Aug 16, 2009 1:26 pm

apermath wrote:the data i have is in an extensive tree with many extention types. This does not seem to resolve my issue, but I had not known about the -p switch; good to know. any other ideas to take one Dir, full of everything, and recursively change the ownership?


Is there a GUI program that will accomplish the same thing? I've had the same issue.

Thanks,
Jon
Homemade Intel Dual-core 3.4 gHz, 4 gigs ram, EVGA GeForce GT 430
=================================
Mint 14, Arch Linux, Fedora 17
User avatar
oboedad55
Level 2
Level 2
 
Posts: 99
Joined: Thu Aug 06, 2009 3:02 am

Re: Backup Harddive permission

Postby Kaye on Sun Aug 16, 2009 2:13 pm

Have you tried the chown command?

Code: Select all
sudo chown -R username directory


for example, I had to do

Code: Select all
sudo chown -R jordan ~/data
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Backup Harddive permission

Postby lagagnon on Sun Aug 16, 2009 2:42 pm

apermath wrote:the data i have is in an extensive tree with many extention types. This does not seem to resolve my issue, but I had not known about the -p switch; good to know. any other ideas to take one Dir, full of everything, and recursively change the ownership?


You could again just use cp: cp -rp * /home/me/Data/
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Backup Harddive permission

Postby lagagnon on Sun Aug 16, 2009 2:43 pm

oboedad55 wrote:Is there a GUI program that will accomplish the same thing? I've had the same issue.


I don't know of any file manager that will do that easily - this sort of job is a classic good use for terminal commands. I think that you will find that even in MS Windows forums similar questions will get shell responses.
User avatar
lagagnon
Level 7
Level 7
 
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Re: Backup Harddive permission

Postby apermath on Tue Aug 18, 2009 11:50 am

chown solved my problem exactly, and I discovered it was the solution to another issue I was having, mucho kudos. :D
apermath
Level 1
Level 1
 
Posts: 12
Joined: Thu Jun 25, 2009 9:16 pm
Location: Cape Cod, MA

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], ClutchDisc, Dyfi and 30 guests