Hi,

Recently I have encountered strange problems with smbfs and autofs 3.1.7,
kernel 2.4.3.

The problem that I am having is that the automounter fails to mount a
samba mount but the corresponding command from the command line succeeds.

My configuration files is:

/etc/auto.fishies

    mp3   -fstype=smbfs,username=dima,password=""       ://fishies/mp3

and the automounter is launched as:

/usr/sbin/automount /.autofs file /etc/auto.fishies

Now the dubug output I get is:

automount[1162]: starting automounter version 3.1.7, path = /.autofs, maptype = file, 
mapname = /etc/auto.fishies
automount[1162]: Map argc = 1
automount[1162]: Map argv[0] = /etc/auto.fishies
automount[1162]: mount(bind): Testing if "mount --bind" works correctly...
automount[1162]: mount(bind): calling mount --bind /tmp/autofs-bind-3ade0e80-48a/dir1 
/tmp/autofs-bind-3ade0e80-48a/dir2
automount[1162]: -- /bin/mount --
automount[1162]: -- --bind --
automount[1162]: -- /tmp/autofs-bind-3ade0e80-48a/dir1 --
automount[1162]: -- /tmp/autofs-bind-3ade0e80-48a/dir2 --
automount[1162]: -- /bin/umount --
automount[1162]: -- /tmp/autofs-bind-3ade0e80-48a/dir2 --
automount[1162]: -- /bin/mount --
automount[1162]: -- -t --
automount[1162]: -- autofs --
automount[1162]: -- -o --
automount[1162]: -- fd=5,pgrp=1162,minproto=2,maxproto=3 --
automount[1162]: -- automount(pid1162) --
automount[1162]: -- /.autofs --
automount[1162]: using kernel protocol version 3
automount[1162]: attempting to mount entry /.autofs/mp3
automount[1176]: lookup(file): looking up mp3
automount[1176]: lookup(file): mp3 -> -fstype=smbfs,username=dima,password=""       
://fishies/mp3
automount[1176]: expanded entry: -fstype=smbfs,username=dima,password=""       
://fishies/mp3
automount[1176]: parse(sun): gathered options: fstype=smbfs,username=dima,password=""
automount[1176]: parse(sun): core of entry: //fishies/mp3
automount[1176]: do_mount //fishies/mp3 /.autofs/mp3 type smbfs options 
username=dima,password="" using module generic
automount[1176]: mount(generic): calling mkdir /.autofs/mp3
automount[1176]: mount(generic): calling mount -t smbfs -s -o 
username=dima,password="" //fishies/mp3 /.autofs/mp3
automount[1176]: -- /bin/mount --
automount[1176]: -- -t --
automount[1176]: -- smbfs --
automount[1176]: -- -s --
automount[1176]: -- -o --
automount[1176]: -- username=dima,password="" --
automount[1176]: -- //fishies/mp3 --
automount[1176]: -- /.autofs/mp3 --
automount[1176]: >> session setup failed: ERRDOS - ERRnoaccess (Access denied.)
automount[1176]: >> SMB connection failed
automount[1176]: mount(generic): failed to mount //fishies/mp3 (type smbfs) on 
/.autofs/mp3
automount[1162]: shutting down, path = /.autofs
automount[1162]: -- /bin/umount --
automount[1162]: -- /.autofs --

The lines that start with -- I added to see the arguments being passed to
mount.  The strange thing is that 

mount -t smbfs -s -o username=dima,password="" //fishies/mp3 <a director>

succeeds with no problems.

The one thing that was changed on the Win2000 box was that only the
username dima is allowed to mount the export rather than everybody.

Any help would be greatly appreciated.

Thanks
ttyl
Dima

-- 
Dima Brodsky                                   [EMAIL PROTECTED]
                                               http://www.cs.ubc.ca/~dima
201-2366 Main Mall                             (604) 822-6179 (Office)
Department of Computer Science                 (604) 822-2895 (DSG Lab)
University of British Columbia, Canada         (604) 822-5485 (FAX)

Computers are like Old Testament gods; lots of rules and no mercy.
                                                          (Joseph Campbell)

Reply via email to