Date: Wed, 18 May 2005 15:24:05 +0100 From: "James Tucker" <james@rtxnetworks.co.uk> To: <freebsd-fs@freebsd.org> Subject: Limiting Filesizes with /etc/login.conf Message-ID: <D3DA091824C8AF419FDE057D7BDDA8AE86B1@SAMANTHA.rtxnetworks.local>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D3DA091824C8AF419FDE057D7BDDA8AE86B1>