When I try and unmount an SMB share using smb4k, I get the following dialog box: Error - smb4k An error occurred while trying to unmount the share Details smb4k_umount: Cound not find smbumount Running smb4k_umount from the command line with the --no-suid option produces the same error. Running it with the --suid option produces a sililar error: $ smb4k_umount --no-suid ~/smb4k/SERVER/SHARE smb4k_umount: Cound not find smbumount $ smb4k_umount --suid ~/smb4k/SERVER/SHARE smb4k_umount: Cound not find umount $ $ ls -l `which smbumount` ---s--x--x 1 root root 6984 Jan 18 01:35 /usr/bin/smbumount $ ls -l `which umount` -rws--x--x 1 root root 32672 Jan 17 18:01 /bin/umount An strace indicates that smb4k_umount tries to find smbumount or umount by opening the file read-only. Extract of strace output for smb4k_umount --no-suid ~/smb4k/SERVER/SHARE : open("/bin/smbumount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) brk(0x806c000) = 0x806c000 open("/sbin/smbumount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/bin/smbumount", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) open("/usr/sbin/smbumount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "smb4k_umount: Could not find ", 29) = 29 write(2, "smbumount", 9) = 9 write(2, ".", 1) = 1 write(2, "\n", 1) = 1 exit_group(1) = ? Extract of strace output for smb4k_umount --suid ~/smb4k/SERVER/SHARE : open("/bin/umount", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) brk(0x806c000) = 0x806c000 open("/sbin/umount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/bin/umount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/sbin/umount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) write(2, "smb4k_umount: Could not find ", 29) = 29 write(2, "umount", 6) = 6 write(2, ".", 1) = 1 write(2, "\n", 1) = 1 exit_group(1) = ? Reproducible: Always Steps to Reproduce: 1. If necessary, emerge samba smb4k 2. As a normal user, run smb4k 3. In smb4k, browse the SMB network and mount a share 4. In smb4k, attempt to unmount the share Gentoo Base System version 1.6.8 Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.4.28-gentoo-r5 i686) ================================================================= System uname: 2.4.28-gentoo-r5 i686 AMD Duron(tm) processor Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 22 2004, 13:06:41)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/work/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups doc encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode x86 xml2 xmms xv zlib video_cards_radeon linguas_en_GB" Unset: LDFLAGS
I've also reported it upstream <http://developer.berlios.de/bugs/?func=detailbug&bug_id=3094&group_id=769>
Created attachment 49130 [details, diff] Allows smb4k command-line utilities to find programs without opening them. The patch is against CVS, but applies against smb4k-0.5.0 fine. I've also submitted this patch upstream, but haven't heard anything back yet (well, it's only been 20 minutes so far!).
Looks like upstream accepted this patch. So I'll apply it also to the ebuild in the next days. (please remember if I forgot to do this ;-) ).
assuming this is fixed with 0.5.1 - please reopen if this is not the case