Saturday morning, saw this in /var/log/messages:

"Aug  2 08:29:12 lucy su: default: setting resource limit openfiles: Invalid 
argument"

That's from /etc/weekly, which uses 'su -m nobody' for locate db update
on line 52. The log message can be produced by hand with, e.g.:

# echo /bin/echo FOO | SHELL=/bin/sh nice -5 su -m nobody

invoked by root.

Checking userinfo nobody shows no login class, so presumably default:
applies.

I installed the original login.conf from etc55.tgz. Same message;
anyway, I hadn't edited default:.

The default: entry has openfiles-cur, but not -max. According to
login.conf(5) resource limit entries without -{cur,max} will specify
both, but using -{cur,max} specifies that limit individually. So,
using only foo-cur leaves foo-max unspecified.

Adding openfiles-max and checking again, no message is logged.

BTW, I jumped from 4.9 to 5.5 so the 4.9 login.conf is the most
recent I have handy. The 4.9 login.conf likewise has only
openfiles-cur in default:, but I don't think I've seen that log
message before. Some verbosity recently added?

-Ed

--

The rights you have are the rights given you by this Committee [the
House Un-American Activities Committee].  We will determine what rights
you have and what rights you have not got.

-- J. Parnell Thomas

Reply via email to