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

Boyan Tabakov blade.alslayer at gmail.com
Thu Aug 2 06:25:54 UTC 2007


On Wednesday 01 August 2007 22:43:52 Anne Wilson wrote:
> On Wednesday 01 Aug 2007, Boyan Tabakov wrote:
> > Hi Anne,
> >
> > What exactly is this desktop icon for the remote home directory? Did it
> > appear because of the fstab entry or did you set it up manually? I never
> > use desktop icons (like the place clean:) ) and I am not familiar with
> > automatically generated ones, but if it is there because of the fstab
> > entry, than it is understandable why you are not asked for
> > username/password - these are already in fstab.
>
> It is caused by the fstab entry.  Yes, I understand why it doesn't ask for
> username and password.  What I don't understand is why kontact can't use
> that connection, but has to ask again unless I have open a session through
> the kde web applet (which required both to be given).
>
> > How are you telling kontact to use your remote home directory? Is this
> > some option there or you are redirecting some symlinks?
>
> My addressbook and diary are in remote files - on the server.  I have done
> it this way for several years now, and this is the first time I've hit this
> particular problem.
>
> > I like to see things that happen under the hood:) so would you please
> > post the output of the mount command just after you've logged in to KDE?
>
> I'm not sure what you're asking there, Boyan.

Just log in to KDE, open a konsole window and type "mount". What is the 
output?

> > Also of
> > "ls -lad /mnt/Samba-Home" or whatever your mount point is.
>
> drwxr-xr-x 1 root root 4096 Aug  1 08:20 /mnt/Samba-Home/

There are two possibilities:
 - the /mnt/Samba-Home is not mounted yet
 - the /mnt/Samba-Home is not mounted with the correct permissions

That's why I'd like to see the output of the "mount" command. If it the the 
latter, you won't be able to write anything to the share, just read, unless 
you log in as root, which I hope is not the case.

> > Note the "d"
> > option that will list only the directory itself and not its contents. I
> > just want to see the permissions...
>
> I'll remember that - very useful.
>
> > Also compare this output with the same on your laptop.
>
> I don't mount it, as such, on the laptop.  I just access it in Kontact as a
> remote addressbook and diary.
>

Hmmm, I am beginning to think that there is a misunderstanding here. Accessing 
a resource as a remote resource is one thing. Mounting a remote share locally 
is another. When you mount the samba share, it appears as intgral part of 
your local file system and applications can't tell that this is actually a 
remote file system. So if you want to tell kontact to use the samba share as 
it is mounted, you'd just have to point it to the locally appearing resources 
(located somewhere under /mnt/Samba-Home.

If you tell contact to use the "remote" resource, you are probably specifying 
a protocol on which those can be accessed (most probably smb://). Then KDE 
does not use any mounts (it does not mount your remote file system locally), 
it uses the samba kio slave to allow access to the remote files. That is why 
it keeps asking for password.

Please, post the output of the mount command and we'll see what the best 
course of action is. If we get the mount properly, you'll be able to access 
your resources just like you access local resources and not remote (the 
remote thing will happen transparently for the application).

Best regards!

-- 
Blade hails you...

I hear but how will I see?
               --Nightwish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20070802/2ce905a6/attachment.sig>


More information about the kde-linux mailing list