Date: Sat, 30 Nov 2002 14:53:18 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: questions@FreeBSD.ORG Subject: Re: login.conf problem Message-ID: <20021130145318.GA53930@happy-idiot-talk.infracaninophi> In-Reply-To: <3D9FE7F600007E37@cpfe5.be.tisc.dk> References: <3D9FE7F600007E37@cpfe5.be.tisc.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 30, 2002 at 03:31:44PM +0100, dslb@tiscali.dk wrote: > Hi all > > I have written a small program that outputs some info about itself (process > info). I have used getrlimit() to output the max openfiles field. > As root I get: > main# ./infoon | grep open > Max open files(s): 3664 > Max open files(h): 3664 > > I have created a test user and have written this in /etc/login.conf > test:\ > :openfiles=15: > > But when I su to test and run the program I get: > %./infoon | grep open > Max open files(s): 3664 > Max open files(h): 3664 > > Why? Perhaps :- * The login.conf class 'test' you've created hasn't been set as the login class for the user 'test'? pw user mod -n test -L test * You forgot to rebuild /etc/login.conf.db after editing /etc/login.conf: cap_mkdb /etc/login.conf Oh, and you probably want to modify your test login class a little: test:\ :openfiles=15:\ :tc=default: or you won't get any reasonable settings for a bunch of other stuff. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021130145318.GA53930>