From owner-freebsd-questions Tue Nov 9 12:24:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tdl.tdl.com (tdl.tdl.com [206.180.224.3]) by hub.freebsd.org (Postfix) with ESMTP id 7FBA2150B4 for ; Tue, 9 Nov 1999 12:24:30 -0800 (PST) (envelope-from wdr@tdl.com) Received: from tdl.com (pm5-99.tdl.com [206.180.234.99]) by tdl.tdl.com (8.9.3/8.9.3) with ESMTP id MAA00419; Tue, 9 Nov 1999 12:24:28 -0800 Message-ID: <382882E7.D6E2B076@tdl.com> Date: Tue, 09 Nov 1999 12:24:07 -0800 From: William Richard X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Marc Wandschneider Cc: questions@FreeBSD.ORG Subject: Re: XDM question. References: <13D5F9EDFD72D211BC3100105A1C2233054993@akira.lanfear.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Wandschneider wrote: > Is the /lib/X11/xdm/Xsession file where I'd set global > settings for this? I'd like all users to start out with the same path, > MANPATH, etc ... Yup. Start off your Xsession file like this: #!/bin/sh PATH=/bin:/usr/local/bin...; export PATH MANPATH=/usr/share/man...; export MANPATH [ rest of Xsession ] Each is just a colon-delimited list of directories. You can set other environment variables there, too. The users' shells will read in the path information (whether they're using csh, bash, etc.). Remember not to include a relative path specification (don't include '.' in the path) if you're going to use xdm to log in as root--this is a security hole. If you want to put the pwd in the user's path, include it in their ~/.xsession file. Cheers, William Richard wdr@tdl.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message