[Gllug] Banging my head against samba

Rich Walker rw at shadow.org.uk
Tue Jun 6 16:29:41 UTC 2006


So, I have a machine that identifies itself as:

rw at zeus:~$ smbclient -L monster
Password: 
Domain=[MONSTER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       Remote IPC
	D$              Disk      Default share
	SharedDocs      Disk      
	Monster98       Disk      
	CYNTHIA_C       Disk      
	ADMIN$          Disk      Remote Admin
	C$              Disk      Default share
Domain=[MONSTER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------

My Linux server is set up with the following in smb.conf:

browse list = Yes
domain master = Yes
local master = Yes
preferred master = Yes
os level = 126


My automounter has the "usual" debian /etc/auto.smb:
#!/bin/bash

# $Id: auto.smb,v 1.3 2005/04/05 13:02:09 raven Exp $

# This file must be executable to work! chmod 755!

key="$1"
opts="-fstype=smbfs"

for P in /bin /sbin /usr/bin /usr/sbin
do
	if [ -x $P/smbclient ]
	then
		SMBCLIENT=$P/smbclient
		break
	fi
done

[ -x $SMBCLIENT ] || exit 1

$SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- '
	BEGIN	{ ORS=""; first=1 }
	/Disk/	{ if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 }
	END 	{ if (!first) print "\n"; else exit 1 }
	'



Problem: on the aforementioned machine, my mount-points look like:

rw at zeus:~$ ls /smb/monster/ 
ADMIN  C  CYNTHIA_C  D  Monster98  SharedDocs
rw at zeus:~$ ls /smb/monster/C/
ADMIN  C  CYNTHIA_C  D  Monster98  SharedDocs
rw at zeus:~$ ls /smb/monster/C/C/
ADMIN  C  CYNTHIA_C  D  Monster98  SharedDocs

and so on down.


Anyone got any ideas?

cheers, Rich.



-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list