LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2009, 04:51 PM   #1
genmaicha
Member
 
Registered: Apr 2009
Posts: 38

Rep: Reputation: 15
samba: getting directories with spaces in its path


I'm trying to grab "C:\Documents And Settings\user1" from a windows XP default share C$. I have samba 3.0.33 on centos 5.3. When I try this, I get NT_STATUS_OBJECT_NAME_NOT_FOUND unless I'm directly in the directory which contains the directory..:

Code:
$ smbclient \\\\192.168.1.80\\c$ -Wfoo.bar -Uadministrator
Password: 
Domain=[FACES] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> prompt
smb: \> recurse
smb: \> mget "Documents and Settings\user1"
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \user1\*
(And yes, there is a dir called "c:\Documents and Settings\user1" on the target machine

I tried a bunch of other ways and didn't work:
Code:
smb: \> mget "Documents and Settings"\user1
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \user1\*
smb: \> mget "Documents and Settings"\\user1
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \user1\*
smb: \> mget "Documents and Settings"\\user1
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \user1\*
smb: \>
However, if I just want Documents and Settings, it works fine:
Code:
smb: \> mget "Documents and Settings"
getting file \Documents and Settings\administrator\Application Data\Adobe\Acrobat\9.0\AdobeCMapFnt09.lst of size 21765 as AdobeCMapFnt09.lst (1062.7 kb/s) (average 1062.7 kb/s)
getting file \Documents and Settings\administrator\Application Data\Adobe\Acrobat\9.0\AdobeSysFnt09.lst of size 59929 as AdobeSysFnt09.lst (1721.3 kb/s) (average 1477.4 kb/s)
getting file \Documents and Settings\administrator\Application Data\Adobe\Acrobat\9.0\JavaScripts\glob.js of size 0 as glob.js (0.0 kb/s) (average 1450.5 kb/s)
...
And so does 'cd "Documents and Settings"; mget user1'. What's the correct syntax for mget-ting a nested directory like "Documents and Settings\user1"?

Last edited by genmaicha; 06-02-2009 at 04:53 PM.
 
Old 06-02-2009, 08:48 PM   #2
milkies27
LQ Newbie
 
Registered: May 2009
Location: Malaysia
Distribution: Ubuntu, DSL, gOS
Posts: 7

Rep: Reputation: 0
Hi Genmaicha,

i'm a newbie here, just sharing my 2 cents..

emmm, the path: Documents and settings, can you change it to \\Documents\ and\ Settings\\user1??

Coz as i know, linux will skip the 1st alphabet or space or anything after the \,
so if you follow what i key-in, it should be equal to \Documents and Settings\user1.

Just try it, you won't lose anything...

btw, wish this help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
makefiles with spaces in path teuf Programming 7 08-30-2007 03:04 AM
Problem - Samba path in fstab has spaces for my WindowsXP machine ylikone Linux - Networking 2 08-01-2006 09:02 AM
Wine - changing directories with spaces blazintilda2005 Linux - Software 3 12-18-2005 03:05 PM
Bash Scripting Directories with Spaces gtwilliams Linux - Software 3 07-06-2005 03:16 PM
Directories with spaces Blitzkrieg Linux - General 4 11-28-2002 03:41 PM

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

All times are GMT -5. The time now is 05:44 AM.

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