I see, well you could introduce some test into the equation, ie

if this_share is not mounted
        mount it
else continue

There are other ways to access smb shares:

in konqueror travel to the url smb://machine/share and a
username/password dialog will pop up.

there are programs like linneighbourhood and others that allow you to
browse available shares. (like network neighbourhood)

are you logging into the NT domain that stores the shares? take a look
at the functionality in samba that allows scripts to be run when you log
on. (or does that run scripts on a windows client when you log into a
samba-based domain? - dunno)

I feel we are both missing something real obvious here....



On Wed, 2003-04-02 at 16:24, Tom Munro Glass wrote:
> > > In ~/.profile I'm using several commands like
> > >
> > > mount -t smbfs //server/share ~/share -o credentials=~/.credentials
> >
> > doesn't this mean every time you log into a shell it does the mount
> > again? or tries to?
> 
> Yes, this is happening so obviously I'm doing this wrong. Also just realised 
> that normal users can't use mount so I'm really barking up the wrong tree!
> 
> So I'll start again by asking how I should do this. Basically I want normal 
> users to be able to access a number of shares on a Win2K server and they must 
> connect using their own username and password. Ideally I would like them to 
> be able to set up their own mount points, but I could live with root having 
> to set it up for them.
> 
> Any suggestions,
> 
> Tom Munro Glass
> (now using KMail)
> 
> 

Reply via email to