From owner-freebsd-fs@FreeBSD.ORG Wed May 18 14:24:09 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 571EE16A4CE for ; Wed, 18 May 2005 14:24:09 +0000 (GMT) Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE0D43DC9 for ; Wed, 18 May 2005 14:24:08 +0000 (GMT) (envelope-from james@rtxnetworks.co.uk) Received: from [82.69.255.54] (helo=rtxnetworks.co.uk) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1DYPSx-0005p3-2H for freebsd-fs@freebsd.org; Wed, 18 May 2005 14:24:07 +0000 Content-class: urn:content-classes:message Date: Wed, 18 May 2005 15:24:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Message-ID: Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Thread-Topic: Limiting Filesizes with /etc/login.conf thread-index: AcVbtT8ICQX3J4r7Tnm86rTiqbpWlw== From: "James Tucker" To: X-Originating-Heisenberg-IP: [82.69.255.54] Subject: Limiting Filesizes with /etc/login.conf X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 14:24:09 -0000 Hi,=20 I have been trying to set max file size limits for class of users on my system. I have tried to setup a specific class for this purpose and while it "cap_mkdb's" with no error messages when I copy files over to the users directory I find that I can upload files of any size! This is the class that I have configured in /etc/login.conf: ________________________________________ personal:\ :cputime=3Dinfinity:\ :datasize-cur=3D10M:\ :stacksize-cur=3D8M:\ :memorylocked-cur=3D10M:\ :memoryuse-cur=3D30M:\ :filesize=3D10M:\ :coredumpsize=3Dinfinity:\ :maxproc-cur=3D64:\ :openfiles-cur=3D64:\ :priority=3D0:\ :requirehome@:\ :umask=3D022:\ ________________________________________ and the users chpass output: ________________________________________ Login: julie Password: xxx Uid [#]: 12001 Gid [# or name]: 12001 Change [month day year]: Expire [month day year]: Class: personal Home directory: /home/julie Shell: /bin/sh Full Name: Julie XXX ________________________________________ and /etc/passwd output: ________________________________________ julie:*:12001:12001:Julie XXX:/home/julie:/bin/sh ________________________________________ Looking at the man pages her .login.conf shouldn't override this, "Only a subset of login capabilities may be overridden, typically those which do not involve authentication, resource limits and accounting." and this looks like resource limiting to me! I have even taken the step to rename the .login.conf still with no effect! I'm a bit stuck, as far as I can see everything should work..? Does anybody see anything wrong with this setup?=20 Many Thanks! James