Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2003 14:21:38 -0600
From:      "Chirhart, Brian" <bchirhart@fnni.com>
To:        freebsd-questions@freebsd.org
Subject:   RE: Mount SMB share on bootup
Message-ID:  <200311102021.hAAEsKd0009294@nic.fnni.com>

next in thread | raw e-mail | index | archive | help
>> point is password protected (on the XP side) so I am prompted for a
>> password.  How can I automate that?  Or should I create the share without
a
>> password?  I am not too worried about internal security so the share
could
>> have no password and that would be fine.

>Create a script called whatever.sh, chmod +x 755 whatever.sh and put that
>script in a /usr/local/etc/rc.d.

>Put the following lines in that script

>#!/bin/sh
>smbmount username=user password=pass and the rest of the parametars that
you
>are normaly using when mounting smb partition.

>Mind that if your startup script for samba is samba.sh your mounting script
>must start with a letter after the letter s otherwise you would mounting a
>samba share without smb daemon started.

################################

When I try the smbmount I get a "command not Found"

I checked the man pages on mount and found mount_smbfs, but I can not find
any options that would allow me to specify a username and password.

I am not using Samba (at least I didn't load it... may be there by
default???) - To map the drive I have a line in my /etc/fstab file that
reads:

# Device			#Mountpoint	FSType	OPtion	
//user@server/share	/ftproot	smbfs	rw.nosuto	0	0

Once the server boots, I type "mount /ftproot" and then it asks me for the
password for User.  After the password is entered, /ftproot contains the
contents of the share on my XP system.  It was one of the things that I fell
in love with about BSD - the ability to "see" XP shares with no special
"magic".

So anyway - I think there are several different approaches to this.  Can I
modify my fstab file so that "auto" would work by somehow specifing a
password?  Or is there a password option that I am missing in the mount or
mount_smbfs commands?  OR...  is there a reason I don't have the smbmount
command?

Thank you for all your help!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311102021.hAAEsKd0009294>