From owner-freebsd-questions Sun May 4 05:19:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA21456 for questions-outgoing; Sun, 4 May 1997 05:19:37 -0700 (PDT) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA21451 for ; Sun, 4 May 1997 05:19:35 -0700 (PDT) Received: from localhost (fullermd@localhost) by narcissus.ml.org (8.8.5/8.7.3) with SMTP id FAA20504; Sun, 4 May 1997 05:19:25 -0700 (PDT) Date: Sun, 4 May 1997 05:19:25 -0700 (PDT) From: The Devil Himself To: Steve Howe cc: freebsd-questions Subject: Re: permissions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 3 May 1997, Steve Howe wrote: > > why is it that i can open, modify, and save changes to a > file with r--r--r-- perms (as root)? shouldn't a file be > read only under these conditions? > ------------------------------------------------------------------------- What do you mean, "as root"? If the file belongs to someone else, and you are root, then it doesn't matter what the permissions are. If the file belongs to root, and you are anyone, including root, then you have a problem. Doesn't sound like a common one, because I had some files on my system r--r--r-- owner root, group wheel, and I got annoyed because I couldn't save changes, even as root. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |FreeBSD is good. FreeBSD is our friend. UNIX is our god.| *Micro$oft is bad. Micro$oft causes problems.* |MicroBSD??? I DON'T THINK SO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!| |"I hate quotes in signature files" :-} MAtthew Fuller| *fullermd@narcissus.ml.org FreeBSD junkie* |http://keystone.westminster.edu/~fullermd Westminster College| *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*