You might want to check the /proc/sys/fs/file-max value; it has bit me in the past. When the kernel hits its file-max limit, it produces an error message that sounds a lot like the one you mentioned. Are you sure your problem is with PAM? Eric ********************************************************************* Eric Reischer emr@xxxxxxxxxxxxxxx "The most beautiful thing we can experience is the mysterious." -- Albert Einstein ********************************************************************* On Thu, 22 Jul 2004, Nathan Lloyd wrote: > I am having trouble with the default number of open files allowed by PAM. > > I am running an oracle server on RedHat 8, and when I try to let my > export script run from CRON, it tells me that it's getting the linux > error "too many open files" > > ulimit -n shows 1024 if I run it from the SSH session I log in from or > if I run it from the cron job which is doing the export script. > > I have edited /etc/limits.conf to give all users nofile of 8k soft and > 20k hard limits, which work for login sessions from the console or if > I "su -" to any user, but for SSH sessions and for CRON jobs it seems > that 1024 is still the limit. Even with the modified /etc/limits.conf > the command ulimit -S -n 8000 gives me an error "operation not > permitted" (using the BASH shell) > > I have already modified the system wide limit of open files to 32k.. > > My question is How can I disable these pam limits, as Oracle is the > only thing running, the limits are mostly useless. > I will also accept any answer which tells me how to raise the limits > for cron jobs, but ulimit -n 8000 hasn't worked yet. > > -Thanks > =Nathan Lloyd > > -- > Searching for happiness is kinda like looking for your nose in a rosebush: > If you stop to smell the flowers, you might just realize you had it all along. > > > _______________________________________________ > > Pam-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/pam-list > _______________________________________________ Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list