Bluehost.com Web Hosting $6.95

[Samba] Automounting Windows XP share on Linux

This is a discussion on [Samba] Automounting Windows XP share on Linux within the Samba forums, part of the Networking and Network Related category; I have /etc/auto.master and /etc/auto.smb such that ls /smb/<name of system> works for ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2005
Jeffrey Barish
 
Posts: n/a
Default [Samba] Automounting Windows XP share on Linux

I have /etc/auto.master and /etc/auto.smb such that

ls /smb/<name of system>

works for the two Win98 machines on my network (the machines get
automatically mounted and the directory contains "C"). When I try the same
command on the Windows XP machine, I get

No such file or directory

The auto.smb file that came with my OS (Libranet 3) uses smbclient to get a
list of resources on the target. With the Win98 machine, the output of

smbclient -gNL Win98machine

is

Disk|C|C on Win98machine
IPC|IPC$|Remote Inter Process Communication

But, smbclient -gNL WindowsXPmachine produces

IPC|IPC$|Remote IPC
Disk|print$|Printer Drivers
Disk|C on WindowsXPmachine|
Disk|ADMIN$|Remote Admin
Disk|C$|Default share

auto.smb makes a command option string from this output using awk by looking
for lines that start with "Disk" and then using the token that follows the
"|". In the case of the Win98 machines, it gets "C", which is what gets
mounted. But most, if not all, of the Disk lines from the XP machine are
bogus. Certainly "print$" is not a mountable drive. Nor is "ADMIN$". "C on
WindowsXPmachine" is a comment, not the name of a drive. That leaves "C$".
I don't know what effect the $ has, but otherwise this entry is correct.
Does anyone know why I am getting the other entries? Is there anything I
can do to Windows XP to suppress these bogus responses? If anyone else has
a Windows XP server, do you get the same stuff back from smbclient?
--
Jeffrey Barish

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0