From owner-freebsd-hackers Wed Jul 17 14:14:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA20856 for hackers-outgoing; Wed, 17 Jul 1996 14:14:32 -0700 (PDT) Received: from matlock.mindspring.com (matlock.mindspring.com [204.180.128.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA20851 for ; Wed, 17 Jul 1996 14:14:30 -0700 (PDT) Received: from po1.glue.umd.edu (po1.glue.umd.edu [129.2.128.44]) by matlock.mindspring.com (8.6.12/8.6.9) with ESMTP id RAA11801 for ; Wed, 17 Jul 1996 17:14:27 -0400 Received: from channel.eng.umd.edu (channel.eng.umd.edu [129.2.98.186]) by po1.glue.umd.edu (8.7.5/8.7.3) with ESMTP id RAA00964; Wed, 17 Jul 1996 17:14:27 -0400 (EDT) Received: (from chuckr@localhost) by channel.eng.umd.edu (8.7.5/8.7.3) id RAA25712; Wed, 17 Jul 1996 17:14:26 -0400 (EDT) Date: Wed, 17 Jul 1996 17:14:26 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@channel.eng.umd.edu To: Todd Graham Lewis cc: lists-freebsd-hackers@matlock.mindspring.com Subject: Re: help: immutable files, logs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 17 Jul 1996, Todd Graham Lewis wrote: > We are looking at tidying up our log process, and we'd like to use the > immutable attribute to protect our log files. The problem, of course, is > that if a log file is immutable, then you can't write to it. > > Does anyone have any pointers or FMs I should R? I would assume that you > just place the logs in rotation and set the immutable bit upon rotation, > or is there something I'm missing? You don't have to use the schg flag. The sappnd and uappnd append-only flags seem ideal for what you want to do. Why don't you take a look at the chflags(1) man page? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------