hi jong-yun
the smbmount from samba-2.0.3 uses a different syntax than
the smbmount from smbfs-2.0.1...
smbmount is the one that "changed"....
there is a shell script that supposedly converts smbmount
command options depending if you are running on 2.x or 2.2 kernels
with the different smbfs or smbd versions of smbmount
http://www.wittsend.com/mhw/smbmount.html
am not sure..but...autofs needs to support both smbmount-2.0.1/2
from smbfs-2.0.1/2 and also to support smbmount-2.0.3 from smbd-2.0.3 ??
have fun
alvin
> Dear autofs programmers,
>
> I'm using kernel 2.2.4, samba 2.0.3 and autofs 3.1.3.
> I couldn't automount samba file systems on Win98 PCs.
> After looking on autofs sources, I found some clues.
>
> in "modules/mount_smbfs.c",
> static struct smb_mount_opt mount_opt_list[] = {
> { "nocaps", "-C", 0, 0 },
> { "guest", "-n", 0, 1 },
> { "passwd", "-P", 1, 1 },
> { "srvname", "-s", 1, 0 },
> { "mysmbname", "-c", 1, 0 },
> { "login", "-U", 1, 0 },
> { "uid", "-u", 1, 0 },
> { "gid", "-g", 1, 0 },
> { "filemod", "-f", 1, 0 },
> { "dirmod", "-d", 1, 0 },
> { "port", "-p", 1, 0 },
> { "maxxmit", "-m", 1, 0 },
> { NULL, NULL, 0, 0 }
> };
>
> This option list maybe out-dated. When I run smbmount on my system, it
> shows follows,
>
> Usage: smbmount service <password> [-p port] [-d debuglevel] [-l log]
> Version 2.0.3
> -p port connect to the specified port
> -d debuglevel set the debuglevel
> -l log basename. Basename for log/debug files
> -n netbios name. Use this name as my netbios name
> -N don't ask for a password
> -m max protocol set the max protocol level
> -I dest IP use this IP to connect to
> -E write messages to stderr instead of stdout
> -U username set the network username
> -W workgroup set the workgroup name
> -c command string execute semicolon separated commands
> -t terminal code terminal i/o code
> {sjis|euc|jis7|jis8|junet|hex}
> -D directory start from directory
>
> That's different with above option list. I usually mount samba-fs with
> command like this,
> $ smbmount //win95pc/service -c 'mount /mnt' -U uname
>
> Plz, fix the problems and let me know.
>
> Thanx in adv,
>
> Kim, Jong-yun
>