Fedora Linux Support Community & Resources Center
  #1  
Old 19th August 2006, 08:52 PM
emamm Offline
Registered User
 
Join Date: Jul 2006
Posts: 87
scp - permission denied

Hello

I am trying to scp copying my home dir from one machine to another, but only thing I got is a permssion denied.

What i did was:

scp -r eduardo@xxx.xxx.xxx:/home/eduardo/Documents .

then the password (ok)

and finally

./Documents: Permission denied

[eduardo@xxx home]$ ls -l
total 20

drwx------ 87 eduardo eduardo 4096 Aug 19 16:37 eduardo/

and

drwxr-xr-x 25 eduardo eduardo 20480 Aug 17 11:55 Documents/

What is wrong?

Many thanks

Ed
Reply With Quote
  #2  
Old 21st August 2006, 12:13 PM
ibbo Offline
Registered User
 
Join Date: Jun 2005
Location: Leeds
Posts: 1,264
Your using scp which is a file copy util not a dir copy util.

You need to use rsync instead.

rsync -avp -e "ssh" eduardo@xxx.xxx.xxx:/home/eduardo/Documents .

That will then mirror your Documents dir on your target machine

Ibbo
__________________
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
--
Linux user #349545
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCfdjyzXscddzQvlhBedAcD7qfKmHo==zx0H
Reply With Quote
  #3  
Old 21st August 2006, 01:31 PM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,273
Quote:
Originally Posted by ibbo
Your using scp which is a file copy util not a dir copy util.
SCP is not restricted to files, '-r' switch in scp copies/ uploads directories recursively so your statement is false. Neither is rsync for directory transfers only, nor it is best for simple ftp-style operation.

Back to original question, try ssh to the machine you're trying to copy files from and go to the directory you're trying to download. If you can get there, try creating and deleting a file to see that you actually have permissions to it, if not, then you need to check those to start with.
Reply With Quote
  #4  
Old 21st August 2006, 02:09 PM
emamm Offline
Registered User
 
Join Date: Jul 2006
Posts: 87
Hello

I did what you have suggested and I have no problem h to create or delete files within the dir I want to copy.

Cheers

Ed
Reply With Quote
  #5  
Old 21st August 2006, 02:34 PM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,273
`scp -r user@domain:/[path_to_dir_to_download] .` should then work without any problems.

Now having had a 2nd look at the error messahe you're getting, './Documents' refers to your current directory on client. Create a temporary directory, cd to that and try downloading the Documents dir again (if worst comes to worst, chmod 777 the temporary dir first).
Reply With Quote
  #6  
Old 22nd August 2006, 03:38 PM
emamm Offline
Registered User
 
Join Date: Jul 2006
Posts: 87
Silly me! You were right some permissions were off.

Many thanks

Ed
Reply With Quote
Reply

Tags
denied, permission, scp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Denied T3256 Using Fedora 24 22nd September 2008 03:49 AM
Permission denied?? lch3920126 Using Fedora 2 18th November 2006 06:52 AM
permission Denied?? tekzilla Using Fedora 3 25th June 2005 05:57 PM
Permission Denied kushboy Using Fedora 3 9th August 2004 05:27 AM
permission denied brostu Installation, Upgrades and Live Media 3 25th July 2004 10:51 AM


Current GMT-time: 10:17 (Monday, 28-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat