From owner-freebsd-questions Wed Oct 4 15:48:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kronos.wox.org (gep18-5.nyircatv.broadband.hu [195.184.160.117]) by hub.freebsd.org (Postfix) with ESMTP id E39D537B66D for ; Wed, 4 Oct 2000 15:48:27 -0700 (PDT) Received: (from witch@localhost) by kronos.wox.org (8.11.0/8.11.0) id e94MmCt63903; Thu, 5 Oct 2000 00:48:12 +0200 (CEST) (envelope-from witch) Date: Thu, 5 Oct 2000 00:48:12 +0200 (CEST) From: Ron Scott Reply-To: Ron Scott To: Raoul Schroeder Cc: Ed Quijano , questions@FreeBSD.ORG Subject: Re: Access denied In-Reply-To: <39DB8551.FFA5B63F@gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Oct 4 Raoul Schroeder wrote: > > I installed FreeBsd 4.0 and I want to configure my printer. When I go to > > /etc/printcap the access is denied even login as ROOT. I'm a novice using Maybe the root partition mounted ro, read-only. > > Hmm, if you have an access denied as root, I could only imagine that NO ONE > has read and write permissions to that file: as root (or any user with uid 0), you can modify any file, regardless of permissions as long the file is not immutable (man chflags(1)). > Do a: > ls -la /etc/printcap > > and check the permissions. It should be at least -rw------- > standard is: -rw-r--r-- > > you can change permissions with chmod if necessary. How about sysctl -w kern.securelevel=1; chflags schg /etc/princap then chmod /etc/printcap fails. -- UNIX was never designed to keep people from doing stupid things, because that policy would also keep them from doing clever things. (Doug Gwyn) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message