kde, samba shares and gvfs-mount. How to join them?
I'm a kde user using OpenSuse 11.3. My computer is joined to Active Directory.
Accessing samba shares and modifying files is easy with nautilus, as it automatically mount the share in .gvfs folder.
But I'm a kde user and I'd like to do the same with Dolphin/Konqueror.
Can any tell me if there is an easy way to mount samba shares in a local folder using Dolphin/Konqueror?
What I'm looking for is to add an option to Dolphin/Konqueror that if the url point to a samba share, pressing the button mounts the share on $HOME/LocalNetwork/server/share.
Repeat: Koqueror points to a url of type: smb://server.domain.com/share. Pressing a konqueror button, it would mount server share in $HOME/LocalNework/server/share (it can be mounted with "gvfs-mount smb://server.domain.com/share". As I'm authenticated, no user/password is requested).
I've tried with smb4k, but it has not worked and also I'd like to do it directly from konqueror/dolphin, without having to open a new program.
Did you try to put your shares into fstab list?
If /sbin/mount.cifs has the suid bit set, then using the "user" mount argument will allow you to mount a share without needing to su to root. Setting mount.cifs may have security concerns however.
Here is an example fstab entry for a samba share:
Make sure that the permissions don't allow others to read your home directory. They could cat your .credentials file.
Look at the output of "polkit-auth --user <yourusername> --show-obtainable"
Is one of the results concerning mounting remote shares?
Since you are using Konqueror or Dolphin, you could simple click on the computer & share to open it in the browser after supplying your credentials.
Thanks for the reply.
I think I've not explained my self well.
From Konqueror/Dolphin is possible to access samba shares. If your computer is joined to a Active Directory domain and you use a domain user, you can access samba shares with smb://server.domain/share and you are not ask for user/pass (you use a kerberos tiquet).
Kde programs as Amarok, K3b, ... can access files in samba shares without problem. But other programs, specially gnome programs (including the popular OpenOffice), are unable to use files in a samba share.
If instead of using Konqueror/dolphin you use Nautilus, there is no problem because it maps the share to a local folder ($HOME/.gvfs/share in sever/) and the program are able to access files in samba shares without problems as the folder is mounted locally (as if you use cifs.mount).
Its a problem to use konqueror/dolphin and have to change to nautilus to access samba shares....
If you use Windows you can mount it in an easy way. That's what I try to do from konquero, not having to open a konsole and able to mount the share in an easy way.
I've tried with smb4k, but is has not worked for me (tried in 2 OpenSuse 11.3 and 1 opensuse 11.2).
What Nautilus does when accessing a samba shares like smb://server.domain.dom/share is to execute the command:
and the share is mounted in
$HOME/.gvfs/share in server/
What I try is to do the same, but just form Konqueror/Dolphin. I'd like to add a button to Konqueror/dolphin that pressing the button and if the URL points to a samba share, the share is mounted in $HOME/LocalNetwork/server/share.
As I say, it can be as easy as executing the gvfs-mount, but don't know how.
Thanks for any help.
First of all, why don't you want to try fstab option?
Second, if you want a "button", you can write a 1-line script with mount command, make it executable and put a link to the desktop.
You can also put it into ~/.kde/Autostart folder to run every time you start your KDE. Example is here.
But still... fstab option is better.
I don't know how to describe the problem...
Suppose a windows user. If he wants to mount a samba share as a unit only have to access the share and press right button and say mount to a unit. I think that it's easy for every user, not needing to be an expert user.
Suppose a Linux user with KDE. He has to open a konsole, change to root, modify fstab, add an entry for mounting his share, exit and execute mount.cifs, .... And that for every share....
What do you think that is easier?
If you use nautilus, that is done automatically. But I'm a kde user and use konqueror (and dolphin, even I don't like it too much). But I can't say to users that has to use 3 navigators depending what he wants to do. And not to open a konsole...
The most difficult work is done. Only want an easy button.
I see that more people have this problem. And see they have the same frustration that I...
Any other suggestion?
Read here: http://linuxblog.darkduck.com/2011/0...-with-tux.html
I tried every method I described above.
And fstab is solution which suits me better.
|All times are GMT -5. The time now is 03:00 AM.|