From owner-freebsd-questions@FreeBSD.ORG Mon Apr 18 20:42:46 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D6416A4CE for ; Mon, 18 Apr 2005 20:42:46 +0000 (GMT) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6575D43D1F for ; Mon, 18 Apr 2005 20:42:45 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) j3IKgeam058540; Mon, 18 Apr 2005 22:42:40 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0733161EA; Mon, 18 Apr 2005 22:42:40 +0200 (CEST) Date: Mon, 18 Apr 2005 22:42:40 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20050418204240.GA54808@slackbox.xs4all.nl> Mail-Followup-To: freebsd-questions@freebsd.org, prasadam kumar References: <20050418054125.55091.qmail@web31702.mail.mud.yahoo.com> <441x98z02z.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <441x98z02z.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner cc: prasadam kumar Subject: Re: how to make my RAID device WORM(write once and read many) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 20:42:46 -0000 --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 18, 2005 at 09:27:48AM -0400, Lowell Gilbert wrote: > Please don't top-post. >=20 > prasadam kumar writes: >=20 > > Thanks for responding to my query, > > actually it is a raid5 storage device it contains > > firewire and usb ports, through this > > interface a user can store data to the raid5 device > > irrespective of file system. > > once he copied data to the device it should be > > immutable(i.e cannot be modify and delete). > > Can u suggest any approach to achieve this task. If it's OK to invoke a shell-script to do the archiving, and if you're using UFS it would be possible, I think. That script should do the followin= g: - check for name clashes (abort with an error if a file already exists). - copy the file to the target disk. - chmod ugo-w the file to remove all write permissions. - chflags schg,sunlnk,uchg,uunlnk Of course this is not foolproof, because the superuser can change the flags and permissions. Another option would be to use a revision control system that can handle arbitrary files like subversion. If you write ("commit") a new version of a file, the old version is not lost. This also supposes that you create a wrapper script to make things easier (because the first write has to be an "add" rather than a "commit", and other details like creating directories etc). Roland --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCZBvAEnfvsMMhpyURAvDgAKCEgYTcCdVAti2jXuQFFJGqZkVL+wCfaIEF tjczBB7BIeqfufFcgq0MaDc= =msPV -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--