When I tried to mount some shares as user, I got: libsmb based programs must *NOT* be setuid root. 19223: Connection to nautilus failed SMB connection failed 'chmod 711 /usr/bin/smbmount' solved the problem. Reproducible: Always Steps to Reproduce: 1. 2. 3.
'emerge info'? It seems to me this is not a bug, but a security restricion of your client. With automount, for example, smbmount must be suid.
^^^ must -> could
Here is the info: # emerge info Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 i686) ================================================================= System uname: 2.6.13-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.5-r2, 2.4.1-r1 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://download.startnet.klamovka.kosire.czf/gentoo-mirror http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.zie.pg.gda.pl http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mir.zyrianes.net/gentoo/" LANG="cs_CZ" LC_ALL="cs_CZ" LINGUAS="cs" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apache2 apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bmp bonobo bzlib caps cdparanoia cdr crypt cups curl dba dbase divx4linux dv dvb dvd dvdr dvdread eds emboss encode esd exif extensions fam ffmpeg flac flash fluidsynth foomaticdb fortran freetype ftp gd gdal gdbm georef geos geotiff gif gimpprint gnome gphoto2 gpm gpx grass gstreamer gtk gtk2 gtkhtml guile iconv imagemagick imap imlib inode jack jack-tmpfs java jpeg jpeg2k junit justify kde kdeenablefinal kerberos ladcca ldap libg++ libwww lirc lm_sensors lzw-tiff mad mapserver mcal mhash mikmod mime ming mjpeg mmx mmxext mng motif mozilla mp3 mpeg mplayer mysql mythtv ncurses nls nptl odbc ogg oggvorbis opengl oss pam pcmcia pdf pdflib perl php png postgis postgres ppds proj python qt quicktime quotes rar readline samba scanner sdl session slang slp snmp speex spell sqlite sse ssl subtitles svg svga tcltk tcpd theora tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode usb v4l vcd vhosts vorbis wifi win32codecs wmf xbase xine xml xml2 xmms xprint xv xvid zlib zvbi video_cards_radeon linguas_cs userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
I think this is a recent change (I first noticed the problem in samba-3.0.20a, but hadn't updated for a few weeks before that), but /usr/bin/smbmount *must not* be SUID root. As the original reporter said, after running 'chmod u-s /usr/bin/smbmount', ordinary users can mount and unmount their SMB shares. Only /usr/bin/smbmnt and /usr/bin/smbumount need to be SUID root for ordinary users to mount and unmount SMB shares.
sorry, you're right: the package will be fixed with the bump of 3.0.20b
samba-3.0.20b in portage. Please reopen if needed