From owner-freebsd-current Tue Feb 4 22:51:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA08204 for current-outgoing; Tue, 4 Feb 1997 22:51:06 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA08191 for ; Tue, 4 Feb 1997 22:50:57 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.5/8.8.5) id RAA22663; Wed, 5 Feb 1997 17:50:38 +1100 (EST) Message-ID: <19970205175037.QY28796@labs.usn.blaze.net.au> Date: Wed, 5 Feb 1997 17:50:37 +1100 From: davidn@labs.usn.blaze.net.au (David Nugent) To: taob@vex.net (Brian Tao) Cc: freebsd-current@freebsd.org Subject: Re: /etc/login.conf and xdm logins References: X-Mailer: Mutt 0.60-PL0 Mime-Version: 1.0 In-Reply-To: ; from Brian Tao on Feb 4, 1997 15:18:05 -0500 Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brian Tao writes: > I'm running 3.0-970124-SNAP with the XFree86 3.2 binary > distribution for 2.2-current. Do I need to rebuild or otherwise tweak > xdm to take advantage of login classes? Yes. Basically, you replace { setlogin(), setgid(), initgroups() and setuid() } with setusercontext(). > I can't seem to raise my resource limits above 256 open > files and 32 processes, regardless of my login class in > /etc/master.passwd and the settings in /etc/login.conf. It depends on where and how you've started xdm. If you do it (like most) from /etc/rc.local, then it is getting the "daemon" tagged resources, as that is what init starts /etc/rc with. One way you can fix this is to modify the daemon entry directly. But you could instead try (from /etc/rc.local): limits -C xuser /usr/X11R6/bin/xdm [args] (replace 'xuser' with whatever entry you wish). Modifying xdm is on my login_cap todo list, but of course this may take some time to filter into an XFree release. Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/