[comp.sys.ibm.pc.rt] filesize limit

kerchen@iris.ucdavis.edu (Paul Kerchen) (06/01/89)

Does anyone know how to change the default file size limit in csh?
I know that 'limit filesize xxxxx' will change the file size limit to
xxxxx, but there is a problem with this:
	In order to *increase* the file size limit, one must be root or a 
	member of the system group.  
This is fine if you are root, but what if you're not?  I want to make the
default file size limit larger than what it is, but I see no way of doing
this.  The problem isn't that I don't have root access (I do);  the problem
is that I see no way of increasing the file size limit for a non-root,
non-system group user (but there *must* be a way, right?).  I'm running
AIX 2.2.1, for what it's worth.

[Incidentally, this was the cause for the failed xftp/rcp problem which I
posted about recently.]

Paul Kerchen				| kerchen@iris.ucdavis.edu

karish@forel.stanford.edu (Chuck Karish) (06/02/89)

In article <4474@ucdavis.ucdavis.edu> kerchen@iris.ucdavis.edu (Paul Kerchen) wrote:


>Does anyone know how to change the default file size limit in csh?
Under AIX 2.2.1, each user's filesize limit is controlled by a
flag in /etc/passwd.  It can be manipulated with the 'adduser'
command.  ksh recognizes this number; I haven't verified that
csh has been properly modified.  If not, complain to your system
engineer.

	Chuck Karish		{decwrl,hpda}!mindcrf!karish
	(415) 493-7277		karish@forel.stanford.edu

njs@scifi.UUCP (Nicholas J. Simicich) (06/02/89)

In article <4474@ucdavis.ucdavis.edu> kerchen@iris.ucdavis.edu (Paul Kerchen) writes:
>Does anyone know how to change the default file size limit in csh?
>I know that 'limit filesize xxxxx' will change the file size limit to
>xxxxx 

(.....)

Well, if you look in the adduser command, and then enter "c u
userid-you-want-to-change", it will display a list of attributes of
that userid.  One of the attributes is "filesize", and it can be
changed.  After that, the user can login again, and the new filesize
will be in effect.  I believe that login interprets this and sets it
for the user's login session.  (The filesize parameter is stored in
/etc/passwd with the username, and is separated from the username by a
slash, which breaks some software that tries to parse the username
field.)


An alternative is to add something similar to the following line to
/etc/environment, and then to reboot your system.  init interprets the
/etc/environment file, and those parameters are inherited by all
processes which are started by /etc/rc.

filesize=232700

Official spokesman?  Not me. 

-- 
Nick Simicich --- uunet!bywater!scifi!njs --- njs@ibm.com (Internet)