From owner-freebsd-questions Thu Jan 11 4: 0:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay4.inwind.it (relay4.inwind.it [212.141.53.75]) by hub.freebsd.org (Postfix) with ESMTP id 0268637B400 for ; Thu, 11 Jan 2001 04:00:39 -0800 (PST) Received: from [62.98.42.84] (62.98.42.84) by relay4.inwind.it (5.1.056) id 3A5C38510004F74A for freebsd-questions@freebsd.org; Thu, 11 Jan 2001 13:00:35 +0100 Received: (qmail 3353 invoked by uid 1000); 11 Jan 2001 11:58:18 -0000 Date: Thu, 11 Jan 2001 12:58:18 +0100 From: Francesco Casadei To: freebsd-questions mailing list Subject: Setting term capability in /etc/login.conf Message-ID: <20010111125818.A3300@goku.kasby> Mail-Followup-To: freebsd-questions mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've decided to change the localization settings. Previously I had a login class for italian users in /etc/login.conf: italian:Italian Users Accounts:\ :charset=ISO-8859-1:\ :lang=it_IT.ISO_8859-1:\ :tc=default: In /etc/profile I had: export TERM=cons25l1 and everything was fine. Now I have removed the definition of the TERM variable from /etc/profile, because not all users are in the italian login class. I have defined the term capability in /etc/login.conf: italian:Italian Users Accounts:\ :charset=ISO-8859-1:\ :lang=it_IT.ISO_8859-1:\ :term=cons25l1:\ :tc=default: Then I have rebuilt the database with: cap_mkdb /etc/login.conf When a user in the italian login class logs in, he has the TERM environment variable set to cons25 instead of cons25l1. I grep'd into config files in /etc and user's home directory to search for an explicit definition of the TERM variable, but I couldn't find it. As stated in the login.conf(5) man page: ENVIRONMENT Name Type Notes Description [snip] term string Default terminal type if not able to determine from other means. so I understand that TERM is not set to cons25l1 because the terminal type is determined from "other means". Now the question is: what are these "other means"? I don't want to put 'export TERM=cons25l1' in each italian user's ~/.bash_profile, because I would loose the simplicity of the administrator level login classes method. Francesco Casadei To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message