Hello everybody, I find a bug in the manpage of ulimit(Package: bash Version: 3.2): The description 'A hard limit cannot be increased once it is set' should be modified to 'A hard limit cannot be increased once it is set unless the user is root'.
When the user is root,the hard limit can be increased: ====================================================== [EMAIL PROTECTED] ~]# ulimit -He 0 [EMAIL PROTECTED] ~]# ulimit -He 100 [EMAIL PROTECTED] ~]# ulimit -He 100 ====================================================== I have made a patch for the manpage of the latest release of ulimit (bash-3.2). The content of the patch: --- bash.1 2007-09-17 10:44:56.000000000 -0400 +++ bash.1.orig 2007-09-17 09:46:52.000000000 -0400 @@ -8494,9 +8494,8 @@ processes started by it, on systems that allow such control. The \fB\-H\fP and \fB\-S\fP options specify that the hard or soft limit is set for the given resource. A hard limit cannot be increased once it -is set; a soft limit may be increased up to the value of the hard limit. -If neither \fB\-H\fP nor \fB\-S\fP is specified, both the soft and hard -limits are set. +is set unless the user is root; a soft limit may be increased up to the value ofthe hard limit. If neither \fB\-H\fP nor \fB\-S\fP is specified, both the soft +and hard limits are set. The value of .I limit can be a number in the unit specified for the resource Could you confirm and apply it in the next release? Thanks a lot. Regards Cai Xianchao