LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2006, 01:18 AM   #1
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Rep: Reputation: 15
Samba- on "put file x" says file does not exist?


Hi,
My CentOS box is connected to a WinXP Home box directly via crossover cable in a simple file sharing network. Network is tested to connect properly, as both machines can ping themselves and each other. I use Samba to connect to shares on the WinXP box. Although after the command "smbclient -L nameOfWinBox" I get the exact list of shares that I set up for Windows to share, when I try to change directory to a shared folder:
Code:
smb: \> cd Share For Linux
I get the following message:
Code:
cd \My\: NT_STATUS_ONJECT_NAME_NOT_FOUND
And this is not the only issue. There are shares whose names don't contain spaces (if space in the name is an issue) and I get to them correctly via the cd command. The "ls" command works as expected and lists contents fo the share correctly. But when I try to copy a file from that folder to my CentOS box:
Code:
smb: \ShareForLinux\> put DaFile.txt
I get an error message saying that the file doesn't exist although it was previously listed with ls command.
How to fix this?
 
Old 08-22-2006, 02:09 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Spaces ARE an issue, try escaping them with back-slashes
cd Share\ For\ Linux
Or quoting the whole lot
cd "Share For Linux"

And I think the command you want to use is get, not put.


Cheers,
Tink
 
Old 08-22-2006, 11:11 AM   #3
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks Tinkster! But... get works; put doesn't? (scratching head)
 
Old 08-22-2006, 01:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That's because the directions differ.... ?

Centos -> Windows: put
Centos <- Windows: get

If there's a file called DaFile.txt in your current working
directory on the centos machine you PUT it. If it's on the
windows share, and you want to have it on the centos machine
you GET it.


Cheers,
Tink
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Invalid File Handle" error on Fat32 Samba deiphage Linux - Networking 1 02-05-2006 01:15 PM
Samba "badly formed line in configuration file" maerong Linux - Networking 5 02-02-2005 05:19 PM
Who put file "dirlist" here? branch Linux - Newbie 4 11-20-2004 07:23 PM
Windows XP opening Samba file as "READ ONLY"? core_sa Red Hat 0 08-28-2004 01:55 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration