[Bug 545995] New: PAM/nscd prevents logins on systems with less than 130MB memory
http://bugzilla.novell.com/show_bug.cgi?id=545995 Summary: PAM/nscd prevents logins on systems with less than 130MB memory Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: novellbmw@lsmod.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.23) Gecko/20090912 SUSE/1.1.18-1.1 SeaMonkey/1.1.18 On my server I run several VMs for small tasks. Today I found that I could no more log into my openSUSE-11.1 VM running nothing but bind9 which has reasonable 64MB RAM and 150MB swap. After testing I found that cause was a "zypper up" which updated nscd yesterday and obviously also did an "insserv nscd" in the process. Booting your normal system with mem=100M could probably also trigger this. Reproducible: Always Steps to Reproduce: 1. have x86_64 OS and 3GB free disk space to run my VM: zypper in qemu-svn #0.11 wget -nc http://www1.zq1.de/bernhard/temp/opensuse-11.1-bad.img.gz gzip -cd opensuse-11.1-bad.img.gz > opensuse-11.1-bad.img 2. qemu-system-x86_64 -hda opensuse-11.1-bad.img -m 128 3. wait til it is booted up, then login root root 4. and test rcnscd start su - ssh root@localhost rcnscd stop Actual Results: # su - su: user root does not exist # ssh root@localhost You don't exist, go away! # tail /var/log/messages .. cannot write to database file /var/run/nscd/services: Cannot allocate memory Expected Results: # su - # # ssh root@localhost Password: Last login: ... Have a lot of fun... Further tests showed that even with 140MB RAM there are errors in /var/log/messages. "free" shows below 20MB used by apps. Effects and error messages vary with amount of free/used RAM. With 64MB RAM+swap, the error messages are even worse, as they never mention nscd - just non-existing users "root" and "sshd" for priviledge separation. also tried setting up extra swap with dd if=/dev/zero of=/tmp/swap bs=1M count=192 mkswap /tmp/swap swapon /tmp/swap and found that at 100MB even without nscd, ssh works only when swap is added at boot time (i.e. via /etc/fstab). So maybe PAM causes this? I adjusted /etc/init.d/boot:111 to provide enough inodes in /dev even on low-mem systems. My old openSUSE-10.3 system without nscd ran fine (apart from some memory leaks) with 32MB for over a year. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545995
zhu rensheng
http://bugzilla.novell.com/show_bug.cgi?id=545995
User novellbmw@lsmod.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=545995#c1
Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=545995
User novellbmw@lsmod.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=545995#c2
--- Comment #2 from Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=545995
User mc@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=545995#c3
Michael Calmer
http://bugzilla.novell.com/show_bug.cgi?id=545995
User pbaudis@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=545995#c4
Petr Baudis
participants (1)
-
bugzilla_noreply@novell.com