Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 17:55:12 +0100
From:      dslb@tiscali.dk
To:        questions@freebsd.org
Subject:   Re: login.conf problem
Message-ID:  <3D9FE7F600007E6D@cpfe5.be.tisc.dk>

next in thread | raw e-mail | index | archive | help
On 2002.11.30 15:53 Matthew Seaman wrote:
> 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

main# pw user mod -n test -L test
main# pw user show test
test:*:1000:1000:test:0:0:test thing:/home:/bin/tcsh
 
> * You forgot to rebuild /etc/login.conf.db after editing
> /etc/login.conf:
> 
>     cap_mkdb /etc/login.conf

main# cap_mkdb /etc/login.conf
 
> Oh, and you probably want to modify your test login class a little:
> 
> test:\
> 	:openfiles=3D15:\
> 	:tc=3Ddefault:
> 
> or you won't get any reasonable settings for a bunch of other stuff.

Ok, done that and made a cap_mkdb, but still:

main# su test
%./infoon | grep open
Max open files(s): 3664
Max open files(h): 3664

The source code (from infoon):
	getrlimit(RLIMIT_NOFILE, &max_graense);
	if (max_graense.rlim_cur =3D=3D RLIM_INFINITY)
		cout<<"Max open files: No limit"<<endl;
	else
		cout<<"Max open files(s): "<<max_graense.rlim_cur<<endl;
	
	if (max_graense.rlim_max =3D=3D RLIM_INFINITY)
		cout<<"Max open files(h): No limit"<<endl;
	else
		cout<<"Max open files(h): "<<max_graense.rlim_max<<endl;


br
socketd


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?3D9FE7F600007E6D>