 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. |
|