On Sat, Nov 30, 2002 at 05:55:12PM +0100, [EMAIL PROTECTED] wrote: > 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=15:\ > > :tc=default: > > > > 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 == 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 == RLIM_INFINITY) > cout<<"Max open files(h): No limit"<<endl; > else > cout<<"Max open files(h): "<<max_graense.rlim_max<<endl; >
Hmmm... How about if you actually login as test or use 'su -l test' rather than just using 'su test' ? As the su(1) man page says: Resource limits and session priority applicable to the original user's login class (See login.conf(5)) are also normally retained unless the target login has a user ID of 0. [...] -l Simulate a full login. The environment is discarded except for HOME, SHELL, PATH, TERM, and USER. HOME and SHELL are modified as above. USER is set to the target login. PATH is set to ``/bin:/usr/bin''. TERM is imported from your current environ- ment. Environment variables may be set or overridden from the login class capabilities database according to the class of the target login. The invoked shell is the target login's, and su will change directory to the target login's home directory. Resource limits and session priority are modified to that for the target account's login class. 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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message