Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105680 - net-fs/samba-3.0.20-r1 smbmount cannot mount shares as user
Summary: net-fs/samba-3.0.20-r1 smbmount cannot mount shares as user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on: 109174
Blocks:
  Show dependency tree
 
Reported: 2005-09-12 06:10 UTC by Miroslav Šulc
Modified: 2005-10-14 06:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2005-09-12 06:10:52 UTC
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.
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2005-09-13 10:42:43 UTC
'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.
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2005-09-13 23:25:15 UTC
^^^ must -> could
Comment 3 Miroslav Šulc gentoo-dev 2005-09-14 01:57:14 UTC
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
Comment 4 Ian Abbott 2005-10-10 06:29:11 UTC
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.
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2005-10-14 04:23:31 UTC
sorry, you're right: the package will be fixed with the bump of 3.0.20b
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2005-10-14 06:38:08 UTC
samba-3.0.20b in portage. Please reopen if needed