From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 19:55:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 423C9106566C for ; Tue, 15 Apr 2008 19:55:37 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 12D398FC22 for ; Tue, 15 Apr 2008 19:55:36 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id E4C951CC91; Tue, 15 Apr 2008 11:55:35 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 15 Apr 2008 21:55:33 +0200 User-Agent: KMail/1.9.7 References: <200804151455.01270.mi+mill@aldan.algebra.com> In-Reply-To: <200804151455.01270.mi+mill@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804152155.34550.fbsd.questions@rachie.is-a-geek.net> Cc: Mikhail Teterin , robin@isometry.net Subject: Re: strange file-permission problem 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 Apr 2008 19:55:37 -0000 On Tuesday 15 April 2008 20:55:01 Mikhail Teterin wrote: > I've encountered a problem, which went ahead most of the things I know > about Unix file permissions: > > dovecot@bonkers:run/dovecot/login (10) ls -l ssl-parameters.dat > -rw-r----- 2 root dovecot 230 Apr 13 00:33 ssl-parameters.dat > dovecot@bonkers:run/dovecot/login (11) groups > dovecot > dovecot@bonkers:run/dovecot/login (12) id > uid=143(dovecot) gid=9005(dovecot) groups=9005(dovecot) > dovecot@bonkers:run/dovecot/login (13) cat ssl-parameters.dat > /dev/null > cat: ssl-parameters.dat: Permission denied > dovecot@bonkers:run/dovecot/login (14) ls -ld > drwxr-x--- 2 root dovecot 512 Apr 15 14:44 . > > I had to set the mode of ssl-parameters.dat to 644 to allow dovecot-users > to login, but it should not be needed -- the file should be readable by > members of the group "dovecot" (such as user "dovecot"). Since the default GID for dovecot is 143, I suspect you have two dovecot groups. ls -ln should show you the numeric group id. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.