Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88194 - specifying default limits in limits.conf affects root too
Summary: specifying default limits in limits.conf affects root too
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 11:03 UTC by Fernando Sanabria
Modified: 2005-07-04 06:48 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 Fernando Sanabria 2005-04-06 11:03:57 UTC
There are 2 new lines in the default limits.conf:

*               soft    nproc           10
*               hard    nproc           10

The problem is this new limits affects EVERY user.   I got problems with Samba rejecting logins because sometimes the system call setresuid32() returns EAGAIN.  
I guess this could affect other programs.

Reproducible: Always
Steps to Reproduce:
1.Do things as root
2.
3.
Actual Results:  
root gets limits.   For example "ulimit -u" is 10.   

Expected Results:  
root can run whatever
Comment 1 SpanKY gentoo-dev 2005-04-06 16:18:00 UTC
limits.conf is provided by pam ... what version of pam are you using ?  you neglected to provide `emerge info` like the bug report page told you to ...

the default /etc/security/limits.conf file does not define anything with 0.78-r2
Comment 2 Fernando Sanabria 2005-04-07 05:44:32 UTC
*  sys-libs/pam
      Latest version available: 0.77-r6
      Latest version installed: 0.77-r6
      Size of downloaded files: 3,552 kB
      Homepage:    http://www.kernel.org/pub/linux/libs/pam/
      Description: Pluggable Authentication Modules
      License:     PAM


I just made an emerge sync so the 0.77-r6 is the latest version on stable
Comment 3 SpanKY gentoo-dev 2005-04-07 06:19:30 UTC
so i guess you're saying that the default limits.conf file isnt an issue, but the fact that if you define a default limit in your limits.conf yourself, it'll affect the root user

you still havent posted `emerge info` like you were supposed to
Comment 4 Fernando Sanabria 2005-04-07 06:35:43 UTC
I did not put those lines myself.   Those lines appear after an emerge sync / emerge -u world / dispatch-conf.   Because of those lines some things got broken.

emerge info:

Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) Processor
Python:              dev-lang/python-2.3.4-r1,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Mar 18 2005, 20:35:24)]
dev-lang/python:     2.3.4-r1, 2.2.3-r5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.6.3, 1.4_p6, 1.8.5-r3, 1.9.4, 1.5 sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.4.3-r4, 1.5.10-r4 virtual/os-headers:  2.4.22-r1, 2.4.19-r1 ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes" CFLAGS="-mcpu=athlon -march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2" 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 3dnow X aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdparanoia cdr clearpasswd crypt cscope cups curl dvd emboss encode esd fam flac font-server foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick imap imlib ipv6 java jpeg kde ldap libg++ libwww live mad mikmod milter mmx motif mozilla mp3 mpeg msn mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png pwdb python qt quicktime readline real samba sdl session slang speex spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts v4l v4l2 xinetd xml xml2 xmms xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-04 06:48:27 UTC
I rechecked with 0.77-r6 .. those lines are commented by default.  Either you
made an mistake during merging the config files, or maybe enabled that by
mistake and maybe just forgot about it.