[kde-linux] Connecting to a samba share at startup

Anne Wilson cannewilson at googlemail.com
Mon Jul 30 20:17:18 UTC 2007


On Monday 30 Jul 2007, John Andersen wrote:
> On Monday 30 July 2007, Anne Wilson wrote:
> > On Monday 30 Jul 2007, John Andersen wrote:
> > > On Monday 30 July 2007, Anne Wilson wrote:
> > > > On Monday 30 Jul 2007, Boyan Tabakov wrote:
> > > > > On Monday 30 July 2007 14:22:50 Anne Wilson wrote:
> > > > > > On Monday 30 Jul 2007, Werner Joss wrote:
> > > > > > > > How can I ensure that I connect to my home directory on a
> > > > > > > > server, when I log
> > > > > > > > in to a session?
> > > > > > >
> > > > > > > Anne,
> > > > > > > you could create a shellscript in your ~/.kde/env directory,
> > > > > > > e.g. smbmount.sh,
> > > > > > > which mounts the samba share via smbmount command.
> > > > > > > scripts in ~/.kde/env are executed automatically at login.
> > > > > >
> > > > > > Yes, of course.  I should have remembered that.   Could you give
> > > > > > me an example of the syntax for passing username and password? 
> > > > > > I've little experience of shellscripts, and none for this kind of
> > > > > > job. Thanks
> > > > > >
> > > > > > Anne
> > > > >
> > > > > Hi,
> > > > >
> > > > > Better use mount (it will call smbmount):
> > > > >
> > > > > mount -t smbfs -o username=myname password=mypass //service/path
> > > > > /mount/point
> > > > >
> > > > > If you would like to mount the samba share on boot, you could add a
> > > > > fstab entry for it too:
> > > > >
> > > > > //service/path	/mount/point	smbfs	username=myname,password=mypass	0
> > > > > 0
> > > >
> > > > Just doing this, but need clarification.  What exactly do you mean
> > > > by //service/path?
> > > >
> > > > Anne
> > >
> > > It means //machine-name/share-name   The designation of a share visible
> > > on the network in windows workgroup notation.
> >
> > Sorry to harp on, but mistakes in fstab tend to mess things up :-)  So
> > for my home directory, would that be //server-name/anne, or
> > //server-name/homes?
> >
> > Anne
>
> Probably //server-name/anne  but any windows machine should be
> able to tell you by browsing the network neighborhood.
>
> homes is another share used to navigate to other users directory
> (if permissions allow)
>
> Each user is also shared by samba under that users login name
> by virtue of the [users] entry in the /etc/samba/smb.conf file

Hmm - I have 

//borg/anne  /mnt/Samba-Home   smbfs   username=anne,password=mypasswd 0 0

but it didn't work.  What did I get wrong?

Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20070730/140406bd/attachment.sig>


More information about the kde-linux mailing list