Copying files

Post Reply
User avatar
Andy Horn
Knows their stuff
Posts: 188
Joined: July 24th, 2011, 6:14 pm
Location: Stockton on Tees

Copying files

Post by Andy Horn »

Hi all.

How do I copy files/folders from my home folder to a folder on a mounted shared drive?

Every time I try I get permission errors, as it at the moment I have to copy via the network which is a bit of a pain.

I really don't want start messing around with permissions just in case I fudger up something.

Cheers

Andy
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

Re: Copying files

Post by Ian »

Hi Andy,

I'm afraid you're just gonna have to "mess around with permissions", sir. ;)

Check the permissions of the mount points. If, for example, you've mounted the shared drives under /media then issue the following command:

Code: Select all

ls -l /media


If they're owned by "Andy" (or whatever your username is) then you should already have permission by default. If however they're mounted as root, or some other user, then you'll need for "other" to have permissions too (unless you want to start messing around with permissions groups). So issue the following command to fix this:

Code: Select all

sudo chmod o=rwx /media/*


If you're already the owner then issue the following command instead:

Code: Select all

sudo chmod u=rwx /media/*


Obviously substitute "media" above with the relevant mount point folder.

Does that help?

Ian.
User avatar
Andy Horn
Knows their stuff
Posts: 188
Joined: July 24th, 2011, 6:14 pm
Location: Stockton on Tees

Re: Copying files

Post by Andy Horn »

Thanks Ian.

But I have managed to get past the permissions without having to change them.

Here's how:

VNC into my server.

From places select network>media-server(In my case) logon to the server>locate the file/folder I want to copy from my home folder>home/andy/whatever folder>drag the file/folder into a folder on the server and voilà job done.

Easy eh?

Andy
Post Reply