From: "Sean Akers"
Message-ID: <80256997.0037A159.00@romaxtech.com>
Date: Tue, 14 Nov 2000 10:27:32 +0000
Subject: Re: [SLE] Accessing samba / win98 shares
<p><p><p>Sean Akers@ROMAX
14/11/2000 10:27
You need to use smbmount to mount Windows 9x/NT/W2K shares.
e.g.
/usr/bin/smbmount //worf/sean /mnt/seanWorf -o
username=sean,password='mypassword'
this command will mount the share named 'sean' from the Windows machine
named 'worf' to the mount point /mnt/seanW2K
For public shares, everything after the -o option is not needed but on my
setup only user 'sean' can access this particular share (it's a W2K
machine).
I have put the password in single quotes because my actual password
contains punctuation characters. The quotes stop these characters being
nabbed
by the shell.
You can also put entries in /etc/fstab. Here is an example from my setup:
//worf/sean /mnt/seanWorf smbfs
username=sean,password=mypassword
This works very well IMO. I use this system to allow my Linux server to
perform backups of data files from my Windows boxes to tape etc.
I don't know of any console utilities to browse available Windows shares
though.
With smbmount you already need to know what is shared on the machine you
are mounting. It would be nice to find such a utility
esp. if it could write out fstab entries and/or smbmount command lines for
you.
Anyway I hope this helps.
<p>Whilst on this subject. Is there any way to automount Windows shares. On my
setup, I have a cron job which attempts to mount the Windows shares every
15 minutes.
This is needed because Windows being what it is tends to get rebooted and
shutdown a lot (even W2K which although much better than previous
versions is still rather flakey compared to Linux) and I have to make sure
that the shares are mounted when the backup scripts execute. I also tend to
share files
between Windows and Linux and I just want to have immediate access to my
Windows shares from Linux without having to manually mount them.
I haven't had much success with automounting things so far. Any pointers
would be most welcome.
Sean.