LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices

Reply
 
Search this Thread
Old 02-24-2011, 05:15 PM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Rep: Reputation: 31
kde, samba shares and gvfs-mount. How to join them?


Hallo:

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.

Thanks
 
Old 02-25-2011, 03:46 AM   #2
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
Did you try to put your shares into fstab list?
 
Old 02-25-2011, 04:50 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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:
Code:
//elite/jschiwal /mnt/elite/smb cifs rw,user,defaults,cred=/home/jschiwal/.credentials
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.
 
Old 02-25-2011, 04:16 PM   #4
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
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:
gvfs-mount smb://computer.domain.dom/share
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.
 
Old 02-25-2011, 04:30 PM   #5
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
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.
 
Old 02-25-2011, 05:58 PM   #6
Felipe
Member
 
Registered: Oct 2006
Posts: 294

Original Poster
Rep: Reputation: 31
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?

Thanks
 
Old 02-25-2011, 06:06 PM   #7
darkduck
Member
 
Registered: Jan 2011
Location: London
Distribution: Mageia, Debian, Mint
Posts: 490

Rep: Reputation: 26
Quote:
Originally Posted by Felipe View Post
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?
You only need to do this once! Once fstab is edited, your remote partitions will be mounted automatically.

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.
 
  


Reply

Tags
gvfs, kde, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba shares mount ro only mrknight Linux - Newbie 6 08-23-2006 09:27 AM
can mount samba shares, but not browse them broxtor Linux - Software 0 11-19-2004 12:00 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 06:03 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
mount samba shares (?) bkeating Linux - General 7 07-01-2002 11:23 PM


All times are GMT -5. The time now is 02:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration