PDA

View Full Version : [ubuntu] moving data



JoelClement
November 12th, 2008, 08:12 AM
I have to move data from a clients hard drive from their RedHat server onto another drive because the server died. I can see the folders, but when I try to copy some of the files, I get a message that says in effect that I don't have permission to read the files. When I try to share the folder, I get a message that says I can't share folders I don't own. when I try to edit the smb.conf to allow the sharing, I am told I don't hame permission for that either. I tried a command like chown but I get an error about resolving the computer name.

taurus
November 12th, 2008, 02:40 PM
Try putting sudo in front of the command when you move files/directories from one drive to another drive.

https://help.ubuntu.com/community/RootSudo

JoelClement
November 12th, 2008, 05:28 PM
I was using the gui because there are 60,000 + files in dozens of folders. How would I do a wholesale move with the command line?

taurus
November 12th, 2008, 05:52 PM
If you prefer GUI, nautilus, then run it from a terminal as


gksudo nautilus

psusi
November 12th, 2008, 06:09 PM
cp -a src dest will recursively copy all files while preserving their permissions and ownership ( if run as root, use sudo ).