From owner-freebsd-questions Mon Jun 12 20:14:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.prod.itd.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 133E837B97B for ; Mon, 12 Jun 2000 20:14:10 -0700 (PDT) (envelope-from mikegoe@earthlink.net) Received: from localhost (1Cust213.tnt2.montgomery.al.da.uu.net [63.27.156.213]) by falcon.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with SMTP id UAA11322 for ; Mon, 12 Jun 2000 20:14:03 -0700 (PDT) Message-Id: <200006130314.UAA11322@falcon.prod.itd.earthlink.net> From: "Michael G." To: "freebsd-questions@freebsd.org" Cc: "questions@FreeBSD.ORG" Date: Mon, 12 Jun 2000 21:55:54 Reply-To: "Michael G." X-Mailer: Emerald Mail (Evaluation) 1.30 running on FreeBSD 4.0-STABLE Java 1.1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: environment References: <39447E8C.27B6045E@tdnet.com.br> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I missed your original post..but I had the same environment problem when I started using xdm (where .login was not being read) and found the following in the archives: > 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=3D/bin:/usr/local/bin...; export PATH MANPATH=3D/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 Worked great for me! Michael G. Gustavo Vieira Goncalves Coelho Rios wrote: > Francisco Reyes wrote: > > > > On Mon, 12 Jun 2000 01:46:21 -0300, Gustavo Vieira Goncalves > > Coelho Rios wrote: > > > > >When using xterm, my environment is different from that of the console. > > >Could some some explain me why ? > > > > I believe it has to do with one been a login shell and the other > > not. > > Different set of startup files get executed based on whether the > > shell is a login shell. It depends on the shell. Check the man > > page for your shell. > > > > To find out your shell echo $SHELL > > Search the man page for "startup" or "login shell" > > > Ok! > I am starting my xterm with -ls option, (xterm -ls). That means the > shell started will be a login shell, i.e., the first letter in argv[0] > is a '-'. > > The problem still persists. > > thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message