[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Re: Automounting SMB shares
And Lo! The Great Prophet " Steve Tickle" uttered these words of wisdom...
>
> I've got a line in /etc/fstab which reads
>
> //server/public /mnt/public smbfs auto,user,ro 0 0
>
> but it doesn't automount the directory. Is the above line incorrect in
> some respect?
>
[[ Caution: info may be a little out of date, as I'm pulling this of a RH
6.2 system ]]
A quick read of mount(8) says that for some filesystems, smbfs included,
mount will spawn an application to do the actual mount. This app will be
named /sbin/mount.<fstype>. So for smbfs shares, you need to ensure you have
a program in sbin called mount.smbfs. This may simply be a symlink to
smbmount, or a shell script that will call setup the call to smbmount.
Now reading smbmount(8), there are a number of options; username=,
password=, netbiosname=, workgroup=, amongst a large number of others, that
you may also need to use.
I would assume that mount will pass the options in fstab on to mount.smbfs
... but I'm not sure how that all would tie in. Needs more digging, but all
the info should be in the man pages.
Chris...
--
\ Chris Johnson \
\ cej [at] nightwolf.org.uk \
\ http://cej.nightwolf.org.uk/ ~-----------------------------------+
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.