From owner-freebsd-questions Sun May 4 11:49:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA10029 for questions-outgoing; Sun, 4 May 1997 11:49:19 -0700 (PDT) Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA10024 for ; Sun, 4 May 1997 11:49:16 -0700 (PDT) Received: from aak.anchorage.net (ai-129 [207.14.72.129]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id JAA08934; Sun, 4 May 1997 09:46:12 -0800 Date: Sun, 4 May 1997 01:43:14 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: The Devil Himself cc: abc xyz , 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 > > > > > 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"? > > > > i mean i can do these things as root (2.2.1). > > i guess i should've added that the files ARE > > owner root, group wheel. i don't think i > > should be able to modify such files, but i can. > > it's interesting that you say you can't. > > are you using 2.2.1? > > > > > If the file belongs to root, and you are anyone, including root, then you > > > have a problem. > This was on a 2.1.6 system. > I've also experienced it on a 2.2-STABLE 4/26/97 system. > I've also come across it on a AIX 3.2.4 (shudder) system. > When you say modify and save changes, how are you doing this? > vi? > pico? > emacs? > echo? > Wasn't there some hole in emacs, about it ignoring file permissions? > I'm pretty sure there was one a while ago about it ignoring ownership... joe editor ... i just checked with "pico" - it will NOT allow me to do as described above. joe is the only one i can say for sure. -------------------------------------------------------------------------