T0ken Posted October 30, 2008 Report Share Posted October 30, 2008 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? Quote Link to comment Share on other sites More sharing options...
tyme Posted October 30, 2008 Report Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
T0ken Posted October 30, 2008 Author Report Share Posted October 30, 2008 Thanks. I hadn't tried that yet. I did try it after reading your post, but I still get the same error: Quote Link to comment Share on other sites More sharing options...
scarecrow Posted October 30, 2008 Report Share Posted October 30, 2008 (edited) 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 October 30, 2008 by scarecrow Quote Link to comment Share on other sites More sharing options...
T0ken Posted October 30, 2008 Author Report Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted October 30, 2008 Report Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted October 30, 2008 Report Share Posted October 30, 2008 (edited) 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 October 30, 2008 by scarecrow Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted October 31, 2008 Report Share Posted October 31, 2008 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! Quote Link to comment Share on other sites More sharing options...
tyme Posted October 31, 2008 Report Share Posted October 31, 2008 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. Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted November 3, 2008 Report Share Posted November 3, 2008 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! Quote Link to comment Share on other sites More sharing options...
tyme Posted November 3, 2008 Report Share Posted November 3, 2008 ok, i thought .bashrc is read everytime a new bash shell is launchedMaybe that's the intended way, but it hasn't been my experience. I could be wrong too, though :) Quote Link to comment Share on other sites More sharing options...
Guest reynrw Posted February 16, 2009 Report Share Posted February 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
medo3891 Posted February 16, 2009 Report Share Posted February 16, 2009 I think you need kdebase4-runtime . So install it and try again. smb4k is looking for /usr/lib/kde4/libexec/kdesu which is part of kdebase4-runtime . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.