From owner-freebsd-questions Sat Oct 11 01:40:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA08812 for questions-outgoing; Sat, 11 Oct 1997 01:40:53 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA08805 for ; Sat, 11 Oct 1997 01:40:48 -0700 (PDT) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.7/8.8.5) id KAA02306; Sat, 11 Oct 1997 10:40:13 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199710110840.KAA02306@rvc1.informatik.ba-stuttgart.de> Subject: Re: group permissions In-Reply-To: from Shawn Ramsey at "Oct 10, 97 05:03:07 pm" To: shawn@luke.cpl.net (Shawn Ramsey) Date: Sat, 11 Oct 1997 10:40:13 +0200 (MET DST) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > What is the error message if you try to read it? > > > cd /etc/namedb > namedb: Permission denied. You probably don't have execute permission for namedb (and/or for /etc which is rather unlikely). To use a directory in a pathname you must have execute permission for that directory. To read the filenames in a directory, you must have read permission for that directory. To set the execute permission for all, use chmod a+x /etc/namedb To set the read permission for all, use chmod a+r /etc/namedb To check the permissions use ls -ld /etc/namedb. ls -ld /etc: drwxr-xr-x 14 root wheel 2048 7 Okt 01:25 /etc ^ ^^ ^^ ^ | || || `-- execute permission for others | || |`---- read permissions for others | || `----- execute permission for members of the group wheel | |`------- read permisson for members of the group wheel | `-------- execute permission for root `---------- read permission for root For further details consult the manual page for chmod and ls. Wolfgang