From owner-freebsd-questions@FreeBSD.ORG Wed May 16 07:19:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1053316A406 for ; Wed, 16 May 2007 07:19:50 +0000 (UTC) (envelope-from christopher.illies@ki.se) Received: from humle.it.ki.se (humle.it.ki.se [130.237.101.252]) by mx1.freebsd.org (Postfix) with ESMTP id 8270B13C489 for ; Wed, 16 May 2007 07:19:49 +0000 (UTC) (envelope-from christopher.illies@ki.se) Received: from Klabautermann.ks.se (Klabautermann.ks.se [136.155.136.187] (may be forged)) by humle.it.ki.se (8.13.1/8.13.1) with ESMTP id l4G7JlBC021358; Wed, 16 May 2007 09:19:47 +0200 (MEST) Received: by Klabautermann.ks.se (Postfix, from userid 1001) id C66E8C1C1; Wed, 16 May 2007 09:19:47 +0200 (CEST) Date: Wed, 16 May 2007 09:19:47 +0200 From: Christopher Illies To: Ernest Sales Message-ID: <20070516071947.GA94083@Klabautermann.ks.se> Mail-Followup-To: Ernest Sales , freebsd-questions@freebsd.org References: <20070515145949.GD10568@Klabautermann.ks.se> <000001c7970f$8f51e100$2101a8c0@asinusaureus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c7970f$8f51e100$2101a8c0@asinusaureus> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: .login_conf ignored [solved] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 07:19:50 -0000 On Tue, May 15, 2007 at 06:39:05PM +0200, Ernest Sales wrote: > > > > > On Tue, 15 May 2007 09:14:42 +0200, Christopher Illies wrote: > > > > > > > > > > > The locale settings in my .login_conf are ignored: [...] > > > Try compiling just your ~/login_conf, make sure a > > > ~/login_conf.db file appears. > > > > > > Ernest > > > > Thanks, that has worked! > > > > Before I always used cap_mkdb /etc/login.conf plus all the user's > > $HOME/.login_conf, but just using it on my ~/.login_conf did the > > trick. A ~/.login_conf.db file has appeared. > > > > I feel a bit silly for not having come up with it myself. I guess what > > confused me was that on another user's account the cap_mkdb compiling > > wasn't neccessary, but I don't need to understand that now that it > > works for me. > > > > Thanks again. > > > > Christopher > > But you are still curious, aren't you? Yes > AFAIK, there are two possible > explanations: > > 1) There _is_ a .login_conf.db file in the other user's homedir. No > > 2) The other account pertains to a different login class than yours, > which already sets the desired locale and so masquerades the user's > settings being ignored. Dunno if a user can see his own login class. If > you have permissions, can use vipw to find out (if unfamiliar, take a > look to vipw(8) and passwd(5) manpages, notice the 'class' field). > > Ernest Not that I can see. I 'chris' is my login, and 'bill' in another account that does not have this problem: ; sudo cat /etc/master.passwd | egrep 'chris|bill' | awk -F: '{ print $1,":", $5,":"}' chris : : bill : : ; whoami chris ; ls /home/bill/.login* /home/bill/.login /home/bill/.login_conf ; cat /home/bill/.login_conf # $FreeBSD: src/share/skel/dot.login_conf,v 1.3 2001/06/10 17:08:53 # ache Exp $ # # see login.conf(5) # me:\ :charset=iso-8859-1:\ :lang=se_SE.ISO8859-1: ; sudo sed -i.bak -e 's/se_SE/de_DE/' /home/bill/.login_conf ; su -l bill Password: $ whoami bill $ env | egrep -i 'lang|charset' MM_CHARSET=iso-8859-1 LANG=de_DE.ISO8859-1 But to change settings on the 'chris' account I have to use cap_mkdb /home/chris/.login_conf. Strange... Christopher