Jump to content
Sign in to follow this  
T0ken

smb4k issue

Recommended Posts

I downloaded and installed the smb4k package via the package manager, but I have a weird problem when trying to use it.

 

When I try to open smb4k, I get the following error:

 

"Either your PATH environment variable is not set properly or there are the following programs missing on your system:

kdesu

Please correct this and restart Smb4K."

 

I have the required Samba packages installed, as far as I know, as well as the Kdesu package...but I just can't seem to get around this issue.

 

This worked fine for me when I was running KDE4, but now that I've installed Mandriva One 2009 w/Gnome, it seems to have issues.

 

EDIT:

 

I found this webpage (http://smb4k.berlios.de/handbook/using_smb4k.html), in which it says to "add the location to the PATH environment variable in your shell's configuration file (for the bash(1) shell it is the ~/.bashrc file), before you will be able to run the application"

 

I tried editing ~/.bashrc and adding ‎"/usr/lib/libkdesu.so.5" & "‎/usr/lib/libkdesu.so.5.1.0", but it still doesn't work. Maybe I'm trying to add the wrong location of kdesu?

Share this post


Link to post
Share on other sites
I tried editing ~/.bashrc and adding ‎"/usr/lib/libkdesu.so.5" & "‎/usr/lib/libkdesu.so.5.1.0", but it still doesn't work.
Anytime you make changes to .bashrc you need to (at least) log out and log back in. In some cases (though rarely) a reboot may be necessary.

Share this post


Link to post
Share on other sites

Thanks. I hadn't tried that yet. I did try it after reading your post, but I still get the same error:

 

Screenshot.png

Share this post


Link to post
Share on other sites

Why not running smb4k_mount with the --no-suid switch, and changing the UID of mount.cifs instead?

I don't like at all telling smb4k running its mount command suid root, because every time I had set it like that it was completely screwing my /etc/sudoers file, and I had to repair it manually.

And, I think Gnome also has samba at its VFS-or not? (sorry for not knowing, Gnome is not my cup of tea). If you like Gnome, then escort it with Gnome apps-not KDE ones.

Or you can use smbnetfs- once set up it mounts every samba share transparently, and works under any desktop- not just Gnome or KDE.

Edited by scarecrow

Share this post


Link to post
Share on other sites

Hahaha honestly, I'm brand-new to Linux and almost everything you just wrote to me doesn't make a lot of sense!

 

I had previously installed One 2009 KDE4, and enjoyed using it before Plasma continually crashed with no apparent way to fix it. With KDE4, I had trouble with mounting shares via Samba in the MCC as well as Webmin. I downloaded Smb4k and it worked perfectly just after installation.

 

As I said, I had issues with KDE 4 which eventually lead to me formatting and installing One 2009 Gnome instead. That's what I'm using now (Gnome). I'm trying to use Smb4k because I had gotten comfortable with it when I was using KDE4 on my previous installation. If there is another similar application for Gnome, I'd most certainly try it. But, being a n00b, I don't know much about the different apps available to me.

 

So, maybe you can suggest a program that should work flawlessly for me? I'll try smbnetfs right now.

Share this post


Link to post
Share on other sites

For Gnome, you can try pyneighbourhood.

smbnetfs is definitely simpler and more flexible, but... no gui- just a couple of configuration files and a fuse module taking care of automounting.

Share this post


Link to post
Share on other sites

You may also run

chmod +s /usr/bin/smbmnt

chmod +s /usr/bin/smbumount

at a root console to change the UID of the samba mount commands-after that you will be able to mount shares as plain user. You can do the same for /usr/bin/mount.cifs if you prefer cifs over smb for mounting your shares (I actually do, as it's easier to set locales there).

Edited by scarecrow

Share this post


Link to post
Share on other sites
Anytime you make changes to .bashrc you need to (at least) log out and log back in. In some cases (though rarely) a reboot may be necessary.

 

i think sourcing the new .bashrc is enough but the readonly variables will not be reset (like the TMOUT variable).

 

 $ . ~/.bashrc

or

 $ source ~/.bashrc

 

i might be mistaken though. :huh:

 

ciao!

Share this post


Link to post
Share on other sites

IIRC, that will only apply to the current terminal session. If you close the console and open a new one, you would need to do source ~/.bashrc again.

Share this post


Link to post
Share on other sites
IIRC, that will only apply to the current terminal session. If you close the console and open a new one, you would need to do source ~/.bashrc again.

 

ok, i thought .bashrc is read everytime a new bash shell is launched and it was the .bash_profile that was only read during login.

 

my bash literature is getting rusty. :D

 

ciao!

Share this post


Link to post
Share on other sites
ok, i thought .bashrc is read everytime a new bash shell is launched
Maybe that's the intended way, but it hasn't been my experience. I could be wrong too, though :)

Share this post


Link to post
Share on other sites
Guest reynrw
I downloaded and installed the smb4k package via the package manager, but I have a weird problem when trying to use it.

 

When I try to open smb4k, I get the following error:

 

"Either your PATH environment variable is not set properly or there are the following programs missing on your system:

kdesu

Please correct this and restart Smb4K."

 

I have the required Samba packages installed, as far as I know, as well as the Kdesu package...but I just can't seem to get around this issue.

 

This worked fine for me when I was running KDE4, but now that I've installed Mandriva One 2009 w/Gnome, it seems to have issues.

 

EDIT:

 

I found this webpage (http://smb4k.berlios.de/handbook/using_smb4k.html), in which it says to "add the location to the PATH environment variable in your shell's configuration file (for the bash(1) shell it is the ~/.bashrc file), before you will be able to run the application"

 

I tried editing ~/.bashrc and adding ‎"/usr/lib/libkdesu.so.5" & "‎/usr/lib/libkdesu.so.5.1.0", but it still doesn't work. Maybe I'm trying to add the wrong location of kdesu?

 

Perhaps your executable files are named with a numeral (3) appended, so smb4k, and the Mandriva Control Center, can't find them. The fix is to insert a symbolic link in the file directory with the name of the program executable file less the trailing numeral. Example in /usr/bin/ if smbclient is named smbclient3 insert the symbolic link thus: ln -s ./smbclient3 smbclient. Find a fuller explanation at deluxdata.com/Linux/Samba_M2008_1.html.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...