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 Message-ID: <19970205175037.QY28796@labs.usn.blaze.net.au> In-Reply-To: <Pine.GSO.3.95.970204151612.3942A-100000@vex.net>; from Brian Tao on Feb 4, 1997 15:18:05 -0500 References: <Pine.GSO.3.95.970204151612.3942A-100000@vex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970205175037.QY28796>