Modify ulimit nofiles descriptor

Hi, All

I need to increase the ulimit value permanently without changing /etc/system file. i.e nofiles descriptor.
For all NIS Users logging in.

I know the command to do this:

# ulimit -Sn 4096

This change is temporary.

So, I went on adding this command in the /etc/profile.

# ulimit -Sn
4096
This change is for root.

I checked it for a nis user by 'su' and result is :

# su raman
% ulimit -Sn
4096

# su - raman
# ulimit -Sn
4096

But , this change is not persisted when there is a new login from same user using putty.

# ulimit -Sn
1024

What do you suggest for this problem ? :confused:

Which OS do you run ?
You may need to change some kernel parameter and re-compile your kernel.

Have a look at http://www.princeton.edu/~unix/Solaris/troubleshoot/kerntune.html

Hi I am running on Solaris 10

Please refer to the "SolarisTunable Parameters ReferenceManual"

1 Like

Recompiling Solaris might have been required in the Solaris 1/SunOS 4 times but not anymore with Solaris 2.0 (1992) and newer.

1 Like

Does that mean i may not recompile the kernel.

# uname -a
SunOS basswood 5.10 Generic_137137-09 sun4v sparc SUNW,Sun-Fire-T200

Unless you are an Oracle Solaris engineering employee, you have no way to recompile the Solaris 10 kernel.