Technical article 105168

Root and non-root users are unable to write to a file larger than 1073741312 (1GB).

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

Root and non-root users are unable to write to a file larger than 1073741312 bytes (1 Gigabyte).

Solution

The maximum file size that can be written in OpenServer 5.0.0 is
2GB (4194303 512 byte blocks).  The default value is 2097152 (1GB
measured in 512 byte blocks).  The ULIMIT parameter controls the
host's maximum value.

The user's current ULIMIT value can be determined by invoking 'ulimit -f', which is reported in 512 byte blocks. The maximum size allowable for ULIMIT is configured into the kernel.

The default login ULIMIT is configured in /etc/default/login.

The root user is affected by this limit.

In order to change the ULIMIT configured into the kernel, it is
necessary to use the configure(ADM) utility and then relink the
kernel for this change to take effect.  Verify that no users are
on the system and then shut down the computer into System
Maintenance mode (shutdown -y -g0 -i1).
Once in System Maintenance mode, to configure the kernel, you can
cd /etc/conf/cf.d and then run the configure(ADM) utility
directly (./configure).
Once you are running the configure(ADM) utility, select option
"7.   User and group configuration".

Press <Enter> on each entry until you reach the parameter ULIMIT.

Press <Enter> for all other values you do not wish to change.

After you have updated the kernel parameter, relink the kernel
by invoking ./link_unix  from /etc/conf/cf.d.

Now edit the entry for ULIMIT in /etc/default/login to the default value you want for your users.

Reboot the system.

If you wish to restrict the maximum files' size further for some users, you can edit the startup profile (.profile or .login) for that user and reset ULIMIT there.

From the Xinuos technical article database, record 105168. Reproduced with permission. The original is at www.sco.com/ta/105168, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.