hi,
i'm trying to setup Autofs & samba
running ubuntu dapper, the apt-get setup most things for me, but my samba mount doesn't recognize paths
as in
Code:
michael@theburrow:/etc$ ls /smb/storage
admins clans Customers development executive Galway-BU home
michael@theburrow:/etc$ ls /smb/storage/home
admins clans Customers development executive Galway-BU home
michael@theburrow:/etc$ ls /smb/storage/home/anygarbagetext
admins clans Customers development executive Galway-BU home
not being too familiar with awk or sambaclient, I can't decipher what's going wrong
can anyone point me in the right direction?
my auto.smb is
Code:
#!/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 }; print " \\\n\t /" $2, "://" key "/" $2 }
END { if (!first) print "\n"; else exit 1 }
'