Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th May 2008, 03:20 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
scp wont create a directory?

I have a folder on my desktop called test. I want to copy it to MYSERVER
So I do:
scp -r /home/dave/Desktop/test dave@MYSERVER:/home/dave/

But I get:
scp: /home/dave//test: Not a directory

Whats up with that?

Dave
Reply With Quote
  #2  
Old 19th May 2008, 01:34 AM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
anyone know how to do this?
Reply With Quote
  #3  
Old 19th May 2008, 09:24 AM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
Try creating temporary directory in your home directory on the server and scp the desktop dir in there.
(It's a permission issue, your ~/ needs to be 0755 for you to be able to scp directories directly in it)

[ADD]
I played about a bit and finally managed to re-create your problem. Default user dir had 0700 permissions which prevented recursive SCP of directories to it. I did global permission change to 0755 (for the user directory) and scp'd dir no problems. Reverted premissions back 0700 (recursively) and started new scp session with new dir transfer and had no problems.
I've never come accross this before so am not quite sure what is real reason for it.
[/ADD]
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz

Last edited by pete_1967; 19th May 2008 at 09:51 AM.
Reply With Quote
  #4  
Old 19th May 2008, 02:32 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
hmmm
i sshed and did
cd /home
chmod 0755 dave

then i tried to scp the folder again and i still get the same
Code:
[dave@jec6110h ~]$ scp -r Desktop/test/ MYIP:/home/dave
dave@daviddoria.homeip.net's password: 
scp: /home/dave/test: Not a directory
I also even tried chmod -r 0755 /home/dave with no luck

any more thoughts?
Reply With Quote
  #5  
Old 19th May 2008, 02:45 PM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
Quote:
Originally Posted by daviddoria
I also even tried chmod -r 0755 /home/dave with no luck
Recursive switch for chmod is capital 'R' (chmod -R 0755 [as root])
That worked for me when I tested with freshly created account. Couldn't find any other (any at all) solutions anywhere when I was searching.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #6  
Old 19th May 2008, 02:51 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
yea sorry, i used capital R when i did it, just not when i posted!

here is the verbose output of the scp:

Code:
debug1: Sending command: scp -v -r -t /home/dave
Entering directory: D0775 0 test
Sink: D0775 0 test
scp: /home/dave/test: Not a directory
Does that mean anything to you?
Reply With Quote
  #7  
Old 20th June 2008, 03:56 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
is it not possible to do this?
Reply With Quote
Reply

Tags
create, directory, 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
How to create a new directory on mnt in fedora 7? rohinvijay Fedora Focus 1 9th February 2008 11:05 AM
unable to create any directory that uses numbers as the directory name fed.linuxgossip Using Fedora 19 8th October 2007 03:51 PM
Looking for something to help create a people directory brandor Using Fedora 2 18th July 2005 05:22 AM
NTFS Can't Create Directory rwhite7890 Using Fedora 2 7th July 2005 09:29 AM


Current GMT-time: 18:14 (Friday, 24-05-2013)

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