hi

>     I has modify auto.misc with
> "temp    -fstype=smbfs,login=ting,passwd=xxxx,uid=1000     ://pc06/temp".

as urban previously pointed out...

urban> in /etc/auto.master
urban>          /smbfs  /etc/auto.smbfs
urban> 
urban> in /etc/auto.smbfs
urban>          foo     -fstype=smbfs,login=urban,passwd=XXXXXX,uid=500 ://tyr/install


- a.  make sure you have /smbfs directory on the slackware box.... ( from the 
auto.master file )
        - you can mname your directory name ( /smbfs ) to whatever you wish

- b. good that you changed your login/uid/passwd info..etc

     one of these two versions should work...

        temp    -fstype=smbfs,login=ting,passwd=xxxx,uid=1000     ://pc06/temp
        temp    -fstype=smbfs,login=ting,passwd=xxxx,uid=1000     PC06:/temp

- c.  for slackware-4.0...
        I have autofs-3.1.3 working on my slack-4.0 box...
        I forgot if I had ot install autofs onto it or not...

- d.  from the log files... it looks like the smbmount command syntax is wrong...
        thats why you have all them ^I-p port options shown....

I'd make sure you can manually mount PC06 first...
I'd make sure autofs is enabled in your slackware kernel ( see howto )

        slack-4.0# smbcient -L pc06  -U Administrator
                - should list a bunch of shares..

        slack-4.0# smbmount //PC06/temp /mnt/PC06_test -U Administrator -C -P imedia ( 
old syntax )
        slack-4.0# smbmount //PC06/temp passwd  -c 'mount /mnt/PC06_test' -U 
Administrator ( current one ?? )
                - if smbount works...than you are ready to get autofs to do it for you

have fun linuxing
alvin
http://www.linux-consulting.com/Amd_AutoFS/autofs-HOWTO.html

> but it can't mount /misc/temp.
> 
> I check /var/adm/messages, and it wrote
> 
> Sep  9 09:22:47 linux automount[101]: attempting to mount entry /misc/temp
> Sep  9 09:22:47 linux automount[3195]: >> Usage: /usr/bin/smbmount service
> <password> [-p port] [-d debuglevel] [-l log]
> Sep  9 09:22:47 linux automount[3195]: >> Version 2.0.4b
> Sep  9 09:22:47 linux automount[3195]: >> ^I-p port               connect to
> the specified port
> Sep  9 09:22:47 linux automount[3195]: >> ^I-d debuglevel         set the
> debuglevel
> Sep  9 09:22:47 linux automount[3195]: >> ^I-l log basename.      Basename
> for log/debug files
> Sep  9 09:22:47 linux automount[3195]: >> ^I-n netbios name.      Use this
> name as my netbios name
> Sep  9 09:22:47 linux automount[3195]: >> ^I-N                    don't ask
> for a password
> Sep  9 09:22:47 linux automount[3195]: >> ^I-m max protocol       set the
> max protocol level
> Sep  9 09:22:47 linux automount[3195]: >> ^I-I dest IP            use this
> IP to connect to
> Sep  9 09:22:47 linux automount[3195]: >> ^I-E                    write
> messages to stderr instead of stdout
> Sep  9 09:22:47 linux automount[3195]: >> ^I-U username           set the
> network username
> Sep  9 09:22:47 linux automount[3195]: >> ^I-W workgroup          set the
> workgroup name
> Sep  9 09:22:47 linux automount[3195]: >> ^I-c command string     execute
> semicolon separated commands
> Sep  9 09:22:47 linux automount[3195]: >> ^I-t terminal code      terminal
> i/o code {sjis|euc|jis7|jis8|junet|hex}
> Sep  9 09:22:47 linux automount[3195]: >> ^I-D directory          start from
> directory
> Sep  9 09:22:47 linux automount[3195]: mount(smbfs): failed to mount
> //pc06/temp on /misc/temp
> 
> What's happened?
> 
> 
> ps. My system is slackware 4.0 and autofs is 3.1.3 and samba is 2.0.4b.
> Best regard.
> 
> -----��l�l��-----
> �H���: Urban Widmark <[EMAIL PROTECTED]>
> �����: �ū۾^ <[EMAIL PROTECTED]>
> �ƥ��۰e: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> ���: 1999�~9��9�� AM 07:51
> �D��: Re: smbfs
> 
> 
> On Wed, 8 Sep 1999, �ū۾^ wrote:
> 
> > Hi everybody:
> >     How can i mount smbfs with autofs
> 
> Assuming you have smbfs support in your autofs installation (you need the
> mount_smbfs.so autofs-module, typically in /usr/lib/autofs or
> /usr/local/lib/autofs. I think RedHat6.0 may have left that one out).
> 
> You also need samba installed to get the smbmount program, if you compile
> your own make sure you ./configure correctly. You should probably make
> sure that mounting things works when running smbmount manually, before
> trying to get the autofs configuration right.
> 
> Then you need an entry in your /etc/auto.master, mine is
> /smbfs  /etc/auto.smbfs
> 
> 
> Then you need entries for the things you want to mount in the file given
> in auto.master. These may look like this:
> # /etc/auto.smbfs
> foo -fstype=smbfs,login=urban,passwd=XXXXXX,uid=500 ://tyr/install
> 
> (and since you need to put the passwd here make sure you protect the file)
> 
> 
> The parameters supported varies between samba versions. I use samba 2.0.4
> because I haven't figured out how to do the uid thing with 2.0.5. Autofs
> uses samba 1.9.x syntax, so you need something to translate that into
> "2.0" syntax. Mike Warfield has a script with instructions for this at
> http://www.wittsend.com/mhw/smbmount.html
> 
> Hmm, this sounds too easy, what did I miss?
> 
> /Urban
> 
> 
> 

Reply via email to