Hello all,

    I'm trying to raise the number of max open files a user has on my 
system. I have been able to perform this operation on a Fedora Core 
machine but when I try to implement on my Trustix machine, it seems to 
not work. The following is what I did to try and raise the max number of 
open files for the user joebob.

First I edited /etc/security/limits.conf to include the following lines:

joebob   soft   nofile   10000
joebob   hard   nofile   65536

I saved the file and then began to edit /etc/pam.d/login to include the 
following line:
session   required   /lib/security/pam_limits.so

After saving the file, I issued an echo command to raise the max-files 
on the system:
echo 65536 >/proc/sys/fs/file-max

I should then be able to logout and login as the user and issue the 
command of ulimit -n 10000 and have it not produce an error. 
Unfortunately I get an error and the max number of open files stays at 
1024. The only way I have been able to raise the max number of open 
files is too first login as root, issue ulimit -n 65536; then perform an 
su - joebob; and finally issue ulimit -n 10000. This of course won't 
work because I can't have users logging in as root that I can't trust, 
but also the settings are not saved and need to be issued every session. 
I realize that this is a session limit, but in FC it changes the max 
number of open files upon login.

I checked the /etc/profile and the bashrc files(global and user-local) 
none of these scripts are issuing any commands that pertain to ulimit. 
I've even tried to perform a ulimit -n upon login as the user, but this 
too also produces an error and leaves my max number of open files at 1024.

If someone could help me get to the bottom of this, it would be greatly 
appreciated.

Thanks,

-- 
Matt West


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to