Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337562 - net-fs/nfs-utils-1.2.2-r2 funny pb with /etc/exports
Summary: net-fs/nfs-utils-1.2.2-r2 funny pb with /etc/exports
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 23:15 UTC by Patrick Fourniols
Modified: 2010-11-19 23:31 UTC (History)
2 users (show)

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 Patrick Fourniols 2010-09-15 23:15:45 UTC
with my /etc/exports like it must be:

# /etc/exports: NFS file systems being exported.  See exports(5).
/usr/portage			192.168.0/255.255.255.0(rw,no_root_squash,sync,subtree_check)

on clients mount works ok but ls -l shows:

total 1024
drwxr-xr-x  44 4294967294 4294967294   4096 16 sept. 00:10 app-accessibility
drwxr-xr-x 189 4294967294 4294967294   4096 16 sept. 00:10 app-admin
drwxr-xr-x   3 4294967294 4294967294   4096 16 sept. 00:10 app-antivirus
etc...

but if put in /etc/exports one line for fun ;) like this (2 entry):

# /etc/exports: NFS file systems being exported.  See exports(5).
/usr/portage			192.168.0/255.255.255.0(rw,no_root_squash,sync,subtree_check)
/usr/portage/distfiles		192.168.0/255.255.255.0(rw,sec=krb5,no_root_squash,sync,subtree_check)

on clients mount works ok and ls -l shows:

total 1024
drwxr-xr-x  44 root root      4096 16 sept. 00:10 app-accessibility
drwxr-xr-x 189 root root      4096 16 sept. 00:10 app-admin
drwxr-xr-x   3 root root      4096 16 sept. 00:10 app-antivirus

that's what we want...

found after a mistake in /etc/exports not funny??

without the second stub exported files system, error whas like:
Cannot chown a lockfile with every emerge.

for info:
emerge --info
Portage 2.2_rc83 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 15 Sep 2010 22:30:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.6, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/wschlich-testing /var/lib/layman/vdr-devel /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aften alsa amr apache2 artworkextra automount avahi bash-completion beagle berkdb bittorrent bluetooth branding bzip2 cairo caps cdda cddax cdio cdparanoia cdr cgi cli cmdreccmdi18n cmdsubmenu consolekit cpudetection cracklib crypt cups cutterlimit cutterqueue cuttime cxx dbus dc1394 ddepgentry deltimeshiftrec device-mapper dirac directfb dolbyinrec dri dts dv dvb dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvi dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer encode esd exif extra-cardsets extras fam fbcon fbcondecor ffmpeg flac foomaticdb fortran fr gcdmaster gd gdbm gedit gif gimp git gnokii gnome gphoto2 gpm graphviz gstreamer gtk h323 hal hardlinkcutter iconv id3tag ieee1394 imagemagick iproute2 iptv ipv6 jack jadetex java javascript jpeg jpeg2k jumpplay kde kpathsea ldap libffi libgda libnotify libsamplerate libv4l2 liemikuutio lirc live livebuffer lnbshare logrotate lua lzo mad mainmenuhooks matroska mbrola mdnsresponder-compat mjpeg mmx mng modplug modules mono motif mp3 mpeg mplayer mtp mudflap musepack mysql nautilus ncurses network nls nntp noepg nptl nptlonly nsplugin nvidia nvram oav objc odbc ogg opengl openmp osdmaxitems pam pcre perl php pkcs11 png policykit postfix ppds pppd pulseaudio pvr pysolcards python qt3support qt4 rar readline reflection rtsp samba scanner sdk sdl sdl-image seamonkey semantic-desktop session setup shout sip skins slp smbclient sms sndfile sortrecords sourcecaps spamassassin speex spell spoof-source sql sqlite sse sse2 ssl ssse3 stream submenu subversion svg swat sysfs tcpd telepathy themes theora tiff timercmd timerinfo tk tools tracker truetype tta ttxtsubs unicode upnp usb v4l v4l2 validinput video vidix vlm volctrl vorbis wareagleicon wav wavpack webkit win32codecs wma x264 x86 xine xorg xulrunner xv xvid yaepg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="dibusb-usb1 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia i810 fbdev vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

qlist -U nfs-utils
net-fs/nfs-utils (caps elibc_glibc ipv6 nfsv3 nfsv4 tcpd)


Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-15 23:42:15 UTC
Just for the sake of trying, can you try with a single line but with an explicit sec=sys ?
Comment 2 Patrick Fourniols 2010-09-16 05:20:41 UTC
that have been tried and does not work: if i put a sec=... in the first line, it does not work
if i hide or delete or rem the second line it does not work

Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-19 09:10:09 UTC
Could you try mounting it with '-o vers=3'? This looks like a dup of bug #318847.