Limiting Filesizes with /etc/login.conf
James Tucker
james at rtxnetworks.co.uk
Wed May 18 14:24:09 GMT 2005
Hi,
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=infinity:\
:datasize-cur=10M:\
:stacksize-cur=8M:\
:memorylocked-cur=10M:\
:memoryuse-cur=30M:\
:filesize=10M:\
:coredumpsize=infinity:\
:maxproc-cur=64:\
:openfiles-cur=64:\
:priority=0:\
:requirehome@:\
:umask=022:\
________________________________________
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?
Many Thanks!
James
More information about the freebsd-fs
mailing list