Hello,
        I'm new to autofs.  I have a cluster and would like to mount a
directory served up by a samba server on all of the clients on the
cluster.  However it doesn't seem to work yet.  I'm using the usual
debian/woody packages for autofs, smbfs.  Any help greatly appreciated.
        The samba server works with:

sgenseme@pc974:/$ smbmount "\\\\paris\\sgenseme" /home/sgenseme/paris

but autofs doesn't work with this line in my auto.paris file:

sgenseme        -fstype=smbfs,login=sgenseme,passwd=xxxx    paris:sgenseme

Am I missing something stupid?  I couldn't figure out what the format of
the above line is supposed to be...

        Here are the rest of the gory details:
        First I tested the samba server:

sgenseme@pc3483:~$ /usr/bin/smbclient -L paris
added interface ip=134.181.113.34 bcast=134.181.119.255
nmask=255.255.248.0
Password:
Domain=[BCIS] OS=[Unix] Server=[Samba 2.0.3]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$           IPC       IPC Service (Samba
Server on Paris)
        110Russell-te  Printer   laser
        110Russell-ps  Printer   lp2
        lp3            Printer
        HP-5000N-ps    Printer   remote-hplj
        sgenseme       Disk      Network file storage

        Server               Comment
        ---------            -------
        DENMARK              Information & Library
Services
        PARIS                Samba Server on Paris

        Workgroup            Master
        ---------            -------
        BCIS                 DENMARK

sgenseme@pc974:/$ mkdir /home/sgenseme/paris

sgenseme@pc974:/$ smbmount "\\\\paris\\sgenseme" /home/sgenseme/paris
Password:

sgenseme@pc974:/$ ls /home/sgenseme/paris
#pico03895#                          announce.txt    info.html
project3_1.txt
AdobeFnt.lst                         astroprop.txt   key.sah
public_html.....

        Worked fine.  But paris is unreliable so I want to use autofs.  I
already have autofs working with nfs with another server, "pc3843", which
serves up home, so autofs works and smbfs works but not together.

pc974:/# /etc/init.d/autofs start
Starting automounter: /var/autofs/misc.

pc974:/var/autofs/misc/paris# ls

pc974:/var/autofs/misc/paris# cd sgenseme
bash: cd: sgenseme: No such file or directory           << problem?

pc974:/var/autofs/misc/paris# ls

pc974:/var/autofs/misc# ls
home  paris

pc974:/var/autofs/misc# mount
/dev/hda2 on / type ext2 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext2 (rw)
automount(pid11271) on /var/autofs/misc type autofs
(rw,fd=5,pgrp=11271,minproto=2,maxproto=3)
pc3483:/home on /var/autofs/misc/home type nfs (rw,addr=134.181.113.34)
automount(pid11285) on /var/autofs/misc/paris type autofs
(rw,fd=5,pgrp=11271,minproto=2,maxproto=3)


        Here are the autofs files:  (P.S., can I use nis with smbfs to
simplify some of this when I have a lot of users?)


pc974:/# cat /etc/auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).
/var/autofs/misc        /etc/auto.misc


pc974:/# cat /etc/auto.misc
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd              -fstype=iso9660,ro,sync,nodev,nosuid    :/dev/hdc
floppy          -fstype=auto,sync,nodev,nosuid          :/dev/fd0
home            -fstype=nfs,rw                          pc3483:/home
paris           -fstype=autofs                 file:/etc/auto.paris


pc974:/# cat /etc/auto.paris
# /etc/auto.paris - added 3/2/02 by SDG
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
#
# Add a line for each user who needs access to their paris home directory:
sgenseme        -fstype=smbfs,login=sgenseme,passwd=xxxx    paris:sgenseme



Steve Gensemer
Department of Physics and Astronomy
327 Carnegie Science Bldg
Bates College
[EMAIL PROTECTED]






Reply via email to