[Lunar-bugs] [Lunar Linux 0000059]: Linux-PAM adds a /etc/security/limits.conf

Lunar bug reports list lunar-bugs at lunar-linux.org
Thu Mar 16 16:51:21 UTC 2006


The following issue has been CLOSED
======================================================================
<http://bugs.lunar-linux.org/view.php?id=59> 
======================================================================
Reported By:                El_Angelo
Assigned To:                ratler
======================================================================
Project:                    Lunar Linux
Issue ID:                   59
Category:                   module
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Moonbase Version:           20060108
Core Tools:                 Theedge
Core Tools Version:         20051020
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             01-08-2006 21:18 UTC
Last Modified:              03-16-2006 16:51 UTC
======================================================================
Summary:                    Linux-PAM adds a /etc/security/limits.conf
Description: 
i don't know when this got added but i assume that with the addition of the
last two lines in the /etc/security/limits.conf file  (the one's on the
kcore stuff) that you get some defaults on the maximum filesize and stuff
like that...
anyway it's pretty annoying as max-file size system wide is 1GB... 

I *think* this bug got introduced somewhere on the 1.5.2 release but i'm
not really sure :)




======================================================================

----------------------------------------------------------------------
 El_Angelo - 01-09-06 08:03 
----------------------------------------------------------------------
ok, it was late when i added this bug report... so i guess i should clarify
myself a bit... kind of mixed up the solution with the bug-report

What we have right now is that if you install Lunar Linux on your computer
with all releases starting from 1.5.2 rc2 (imho, could be another release
too, sigh) that default maximum filesize is one gigabyte. Which is not
very practical in the days of multi-terrabyte filesystems.... 

Anyway... There is of course an easy solution. 
/etc/security/limits.conf 
contains the vital means to change this behaviour. 

adding 2 simple lines:

*    soft    fsize 4000000
*    hard    fsize 4000000

changes the maximum filesize to about 4GB... 
I guess you could even put it at unlimited but that might not be the
preferred setup. 

The file (/etc/security/limits.conf) comes out of Linux-PAM so i guess we
can tweak that module a bit further... Prolly the easiest solution is to
add the above mentioned lines... but any other solution (that i'm not
aware of will do just fine as well)

----------------------------------------------------------------------
 ratler - 01-10-06 06:58 
----------------------------------------------------------------------
I've seen this problem on the later ISO's. The /etc/security/limits.conf
havn't been changed for years, so the problem is related to something
else. It could be possible that a later version of Linux-PAM have changed
the defaults in pam_limits.so, I will investigate it. Otherwise I will
change limits.conf to include:
* soft fsize -1
* hard fsize -1 

That will set it back to unlimited.

----------------------------------------------------------------------
 ratler - 01-10-06 09:23 
----------------------------------------------------------------------
Problem found. It was not Linux-PAM as I thought from start. The problem
occur because of a faulty /etc/login.defs comming from shadow module.
Working on a fix for that.

----------------------------------------------------------------------
 ratler - 01-10-06 09:45 
----------------------------------------------------------------------
Fixed in r18073. shadow module will now fix login.defs correctly before
installing it.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
01-08-06 21:18 El_Angelo      New Issue                                    
01-08-06 21:18 El_Angelo      Moonbase Version          => 20060108        
01-08-06 21:18 El_Angelo      Core Tools                => Theedge         
01-08-06 21:18 El_Angelo      Core Tools Version        => 20051020        
01-09-06 08:03 El_Angelo      Note Added: 0000098                          
01-10-06 06:58 ratler         Note Added: 0000099                          
01-10-06 06:58 ratler         Status                   new => assigned     
01-10-06 06:58 ratler         Assigned To               => ratler          
01-10-06 09:23 ratler         Note Added: 0000100                          
01-10-06 09:45 ratler         Status                   assigned => resolved
01-10-06 09:45 ratler         Resolution               open => fixed       
01-10-06 09:45 ratler         Note Added: 0000101                          
03-16-06 16:51 sofar          Status                   resolved => closed  
======================================================================



More information about the Lunar-bugs mailing list