Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » Linux CIFS - Space in W2K3 Share Name.
Search Topic:
Uniqs:
1168
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Samba Share For Router Logs »
« PPP not visible when connected to cell phone USB modem  
AuthorAll Replies

tiger9

join:2005-08-01
Ont,Canada
·Bell Sympatico


1 edit
Linux CIFS - Space in W2K3 Share Name.

I've got home directories to work with SMB shares (Yay!). However, I'd like to mount the documents too into Linux with SMB/CIFS (under /documents/domain/user_name/). However, the documents share on the server has a space in the name ("\\SERVER\RedirectedFolders\\My Documents"), and mount -t cifs chokes on spaces in names. What to do??


deblin
Dark Side of the Moon
Premium,MVM
join:2001-09-01
Middletown, DE


1 edit
Put quotes around it or escape the space.

mount -t cifs ....My\ Documents

or as you've shown there:

mount -t cifs .... "\\SERVER\...\My Documents"
--
He who is not contented with what he has, would not be contented with what he would like to have. -Socrates

tiger9

join:2005-08-01
Ont,Canada
Yes, but I'm doing the mount stuff with pam_mount (in pam_mount.conf). It trims off any quotes in the share name before passing it onto mount.


PetePuma
How many lumps do you want
Premium,MVM
join:2002-06-13
Arlington, VA
Have you tried escaping the quotes, e.g.


I haven't used pam_mount so I can't vouch if this will work or not.

dave
Premium,MVM
join:2000-05-04
not in ohio
·Verizon Online DSL
·Verizon FIOS

reply to tiger9
You could always skip the problem by adding another share (for the same directory) on the server.

FWIW, in \\Server\RedirectedFolders\My Documents, the share is called 'RedirectedFolders'; 'My Documents' is just a directory below that share.

Maybe you could just mount the share 'RedirectedFolders' ?

tiger9

join:2005-08-01
Ont,Canada
I could, but I'd get
"Application Data","Desktop",and "My Documents" under that folder.

I dunno. I'll try something tonight.

dave
Premium,MVM
join:2000-05-04
not in ohio
·Verizon Online DSL
·Verizon FIOS

reply to tiger9
Since it's the directory name and not the share name you've having trouble with, there's always MYDOCU~n, where n is probably 1.

That is, assuming you have 8.3 altname generation enabled on that file system. (I think that's the default)

That's an ugly solution, but it make be the quickest one.


PetePuma
How many lumps do you want
Premium,MVM
join:2002-06-13
Arlington, VA

reply to tiger9
It appears (from the support issue tracker) that you can use a single quote, with spaces escaped, e.g.


»sourceforge.net/tracker/index.ph···d=430594

tiger9

join:2005-08-01
Ont,Canada
·Bell Sympatico

reply to dave
Anyways, I just decided to mount the share, not my documents.

Now KDE complains about not being able to create links in the home dir /home/|domain|/|user|/.kde/.... Any GUI's for Linux that do not require creating file-system links in the home directory?


PetePuma
How many lumps do you want
Premium,MVM
join:2002-06-13
Arlington, VA
I think you can change KDE's config to create those files in some other dir, like /tmp.

tiger9

join:2005-08-01
Ont,Canada
·Bell Sympatico


1 edit
Yes, but it only moves where .kde is created -> there are still links in the user's home directory, and SMB/CIFS does not like that.

EDIT - output from debugging shows that there is a failed attempt at link creation from /home/domain/user/.kde/... to /tmp/.kde/...


bmeeks8

join:2001-07-23
Vidalia, GA
·AT&T Southeast


2 edits
reply to tiger9
To mount shares with spaces in the name, substitute "\040" for the spaces as follows.

Assume the share is \\servername\My Documents, then the line in fstab would read //servername/My\040Documents

I've been using this trick for a couple of years.

tiger9

join:2005-08-01
Ont,Canada
Yeah, but it isn't in /etc/fstab, it's in /etc/security/pam_mount.conf. Trick doesn't work there.
-
Forums » Tech and Talk » OS and Software » All Things UnixSamba Share For Router Logs »
« PPP not visible when connected to cell phone USB modem  


Thursday, 10-Dec 02:56:10 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [200] Sprint Sued For Distracted Driving Death
· [116] AT&T Launching New 24 Mbps U-Verse Tier
· [82] 3G Network Test Says AT&T Is Tops
· [72] Mediacom Unveils 105 Mbps Pricing
· [66] Sprint Poised For A Turnaround?
· [66] WPA Cracker: Test WPA-PSK Networks In 20 Minutes
· [66] AT&T Hints At Usage-Based iPhone Data Pricing
· [51] The Future Of Wi-Fi Is Bright
· [47] Site Leaks Yahoo, Verizon Fed Data Share Pricing
· [45] Microwaving Your Innards Is Not 'Extreme'
Most people now reading
· Cross Server Dungeon Experience [World of Warcraft]
· The aftermath [World of Warcraft]
· ICC strats [World of Warcraft]
· Adobe Flash Player version 10.0.42.34 [Security]
· [ Classes] Druid tanking: rotation and glyphs [World of Warcraft]
· Windows 7 boot manager editing questions [Microsoft Help]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· It's happening again [AT&T Southwest]
· Official "Invite" thread Part 3 - ALL INVITES GO HERE ! [Filesharing Software]
· [How to] Install Asterisk on an Asus WL-520GU router [VOIP Tech Chat]