Hi:
I has modify auto.misc with
"temp -fstype=smbfs,login=ting,passwd=xxxx,uid=1000 ://pc06/temp".
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