From owner-freebsd-questions@FreeBSD.ORG Tue May 15 16:39:13 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 075B416A403 for ; Tue, 15 May 2007 16:39:13 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id B96A513C455 for ; Tue, 15 May 2007 16:39:12 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so182156pyh for ; Tue, 15 May 2007 09:39:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:subject:date:message-id:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=oPmTfDUauR9ZgvPPGVm+HWHlUbcZ573ZAHsEsBIs0VZ02J2S/S2lVdNr1v6I/TPDZEEsAp6ca14TJpSEY+sohb7DPkT8yTs6UUrxjLwq+kVEc5JtahYiTS80c//4q4nWQJ2KszjwSDyLoChgAXIFsSKsyFxz71q/JQKQ5TwxGbs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:subject:date:message-id:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=ev9pZFBPjfm9F7ksRNQE09AL3C1DGore7x6vpeQHCfPWfMTDIPtOs5rhs3Od3u5y5eL75RlTy2lBJhv8xumyvei1j+doROcQrwPk0pG8lGem8PbWdKc8WLQ99gmssUzSKfvlps29HHLRtubQvQfx2viPG9G15ww8rm2gIdsNpMM= Received: by 10.65.97.18 with SMTP id z18mr1243450qbl.1179247151652; Tue, 15 May 2007 09:39:11 -0700 (PDT) Received: from asinusaureus ( [83.50.3.82]) by mx.google.com with ESMTP id q17sm785373qbq.2007.05.15.09.39.08; Tue, 15 May 2007 09:39:10 -0700 (PDT) From: "Ernest Sales" To: "'Christopher Illies'" Date: Tue, 15 May 2007 18:39:05 +0200 Message-ID: <000001c7970f$8f51e100$2101a8c0@asinusaureus> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: <20070515145949.GD10568@Klabautermann.ks.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 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: Tue, 15 May 2007 16:39:13 -0000 On Tuesday, May 15, 2007 5:00 PM, Christopher Illies wrote: > On Tue, May 15, 2007 at 04:36:46PM +0200, Ernest Sales wrote: > > On Tuesday, May 15, 2007 1:18 PM, Christopher Illies wrote: > > > > > On Tue, May 15, 2007 at 12:27:10PM +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: > > > > > > > > > > ; cat .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=UTF-8:\ > > > > > :lang=en_US.UTF-8: > > > > > > > > > > ; env | egrep -i 'lang|charset' > > > > > LANG=en_US.ISO8859-1 > > > > > MM_CHARSET=iso-8859-1 > > > > > ; ls -l .login_conf > > > > > -rw-r--r-- 1 chris chris 146 May 15 08:26 .login_conf > > > > > ; uname -r > > > > > 6.2-STABLE > [...] > > > > Never had to deal with ~/.login_conf files, but what > > > cap_mkdb manpage seems > > > > to say > > > > is that you have to concatenate all sources in one run, i.e. > > > > > > > > cap_mkdb /etc/login.conf /home/user1/.login.conf > > > /home/user2/.login.conf ... > > > > > > > > HTH > > > > > > > > Ernest > > > > > > Thanks, unfortunately no success. > > > > > > When I concatenate all ~/login_conf files with > /etc/login.conf I get > > > the following warning message: > > > cap_mkdb: ignored duplicate: me > > > > So I was mistaken. 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? AFAIK, there are two possible explanations: 1) There _is_ a .login_conf.db file in the other user's homedir. 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