kde, samba shares and gvfs-mount. How to join them?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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:
In your case the .credentials file would contain 3 lines, username, domain and password.
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.
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.
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.
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...