Skip to contentSkip to conversation

Can't mount shares ending in $

DISCUSSION Matthew Jurgens 3 participants 10 messages Mar 11, 2008 – Jul 2, 2008 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Debug files available at http://www.mmcit.co.nz/debug.zip

I recently (about a month ago) upgraded to Fedora 8 (previously on

Fedora 6).

Autofs mounting of shares ending in $ worked on FC6. I think this is the first time I've tried since on Fedora 8.
I've got another Fedora 6 box and shares ending in $ still work ok on this box.

I've tried playing around with the auto.samba script I use but no luck. Output from it is:

RUN: auto.samba matthew

-fstype=cifs,username=mjurgens,password=parallel12 \
         /cd "://matthew/cd" \
         /C "://matthew/C" \
         /G\$ "://matthew/G\$" \
         /E "://matthew/E" \
         /G "://matthew/G" \
         /ADMIN\$ "://matthew/ADMIN\$" \
         /C\$ "://matthew/C\$"

(This is the exact same result as the Fedora6 box)

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$ This works manually if I:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /mnt/matthew The other share to the same location works fine through autofs:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C /smb/matthew/C

Autofs Version = autofs-5.0.2-27
uname -r = 2.6.22.14-72.fc6PAE (I know its an FC6 kernel, everything else is FC8 and I've been running on this since the upgrade due to a problem with either mkintrd or nash)

Reference to an earlier problem with a fix to shares ending in $ where I got the map from:
http://www.mail-archive.com/[email protected]/msg05691.html

maintainer
#1 lore raw
Quoted 2 lines · Matthew Jurgens

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$

Does this command work if you run it manually?

Ian

#2 lore raw

Before you sent this I installed the original Fedora 8 release of autofs (autofs-5.0.2-16). I had originally yum upgraded to Fedora 8 and so had installed the latest version autofs-5.0.2-27. I have found that autofs-5.0.2-16 works fine, but going to -27 breaks it.

And the answer to your question is:
With autofs running - no
With autofs stopped - no
With autofs stopped and when I mkdir /smb/matthew/C$ - yes

Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$

Does this command work if you run it manually?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#3 lore raw
In reply to Ian Kent

Before you sent this I installed the original Fedora 8 release of autofs (autofs-5.0.2-16). I had originally yum upgraded to Fedora 8 and so had been running on the latest version autofs-5.0.2-27. I have found that autofs-5.0.2-16 works fine, but going to -27 breaks it.

And the answer to your question, back on -27 version, is:
With autofs running - no
With autofs stopped - no
With autofs stopped and when I mkdir /smb/matthew/C$ - yes

Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$

Does this command work if you run it manually?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#4 lore raw
In reply to Ian Kent

Hi Ian

For some reason, most of the messages I post to the list never show up - no idea why - so this time I am putting you on the receipt list as well - my reply is below. Thanks for you work on this product.

Before you sent this I installed the original Fedora 8 release of autofs (autofs-5.0.2-16). I had originally yum upgraded to Fedora 8 and so had been running on the latest version autofs-5.0.2-27. I have found that autofs-5.0.2-16 works fine, but going to -27 breaks it.

And the answer to your question, back on -27 version, is:
With autofs running - no
With autofs stopped - no
With autofs stopped and when I mkdir /smb/matthew/C$ - yes

Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$

Does this command work if you run it manually?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#5 lore raw
Quoted 15 lines · Matthew Jurgens

Hi Ian

For some reason, most of the messages I post to the list never show up
- no idea why - so this time I am putting you on the receipt list as well - my reply is below. Thanks for you work on this product.

Before you sent this I installed the original Fedora 8 release of autofs (autofs-5.0.2-16).
I had originally yum upgraded to Fedora 8 and so had been running on the latest version autofs-5.0.2-27.
I have found that autofs-5.0.2-16 works fine, but going to -27 breaks it.

Quoted 4 lines

And the answer to your question, back on -27 version, is:
With autofs running - no
With autofs stopped - no
With autofs stopped and when I mkdir /smb/matthew/C$ - yes

What I'm really after here is to find out whether the cifs mount is choking on the unescaped $ in /smb/matthew/C$.

Quoted 15 lines
Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

From the debug info, the mount command that fails is:
mount -t cifs -s -o username=USER,password=PASSWORD //matthew/C\$ /smb/matthew/C$

Does this command work if you run it manually?

Ian

#6 lore raw

So, no it handles mounting with the unescaped $
It seems to be something broken when going from

autofs-5.0.2-16 to autofs-5.0.2-27

which I also imagine will be broken in future releases.

Any ideas?

Quoted 11 lines
Quoted 5 lines

And the answer to your question, back on -27 version, is:
With autofs running - no
With autofs stopped - no
With autofs stopped and when I mkdir /smb/matthew/C$ - yes

What I'm really after here is to find out whether the cifs mount is choking on the unescaped $ in /smb/matthew/C$.

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#7 lore raw
Quoted 3 lines · Matthew Jurgens

So, no it handles mounting with the unescaped $
It seems to be something broken when going from
autofs-5.0.2-16 to autofs-5.0.2-27

Any chance of getting a debug log from autofs-5.0.2-16?

Ian

#8 lore raw

debug for successful mount of C$ share for autofs-5.0.2-16 available at http://www.mmcit.co.nz/autofs-5.0.2-16.debug.zip

Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

So, no it handles mounting with the unescaped $
It seems to be something broken when going from autofs-5.0.2-16 to autofs-5.0.2-27

Any chance of getting a debug log from autofs-5.0.2-16?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#9 lore raw

I inadvertently "upgraded" to v5.0.2-29 and found that it also has the same problem - where the debug logs shows a mount command that works manually but not when executed by autofs - maybe the mount points are not getting created correctly?

Quoted 17 lines · Matthew Jurgens

debug for successful mount of C$ share for autofs-5.0.2-16 available at http://www.mmcit.co.nz/autofs-5.0.2-16.debug.zip

Quoted 13 lines · Ian Kent
Quoted 3 lines · Matthew Jurgens

So, no it handles mounting with the unescaped $
It seems to be something broken when going from autofs-5.0.2-16 to autofs-5.0.2-27

Any chance of getting a debug log from autofs-5.0.2-16?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs