From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tsh@mrc-lmb.cam.ac.uk (Horsnell T.) Newsgroups: gmane.os.tru64.managers Subject: chmod query Date: Mon, 30 Sep 2002 11:40:49 +0100 (BST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200209301040.LAA35114@alf1.mrc-lmb.cam.ac.uk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1033382460 11321 127.0.0.1 (30 Sep 2002 10:41:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Sep 2002 10:41:00 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17vxyy-0002uw-00 for ; Mon, 30 Sep 2002 12:40:56 +0200 Original-Received: (qmail 12663 invoked by uid 5); 30 Sep 2002 10:41:01 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12654 invoked by uid 49493); 30 Sep 2002 10:41:01 -0000 Original-Received: from tsh@mrc-lmb.cam.ac.uk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.75923 secs); 30 Sep 2002 10:41:01 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 30 Sep 2002 10:41:00 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H3800C4CZ0BRV@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Sep 2002 06:40:59 -0400 (EDT) Original-Received: from purple.csi.cam.ac.uk (purple.csi.cam.ac.uk [131.111.8.4]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H380099EZ06CZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 30 Sep 2002 06:40:54 -0400 (EDT) Original-Received: from server1.mrc-lmb.cam.ac.uk ([131.111.85.23]) by purple.csi.cam.ac.uk with esmtp (Exim 4.10) id 17vxys-0001JQ-00 for tru64-unix-managers@ornl.gov; Mon, 30 Sep 2002 11:40:50 +0100 Original-Received: from alf1.mrc-lmb.cam.ac.uk by server1.mrc-lmb.cam.ac.uk (8.11.6) id g8UAeoP26399; Mon, 30 Sep 2002 11:40:50 +0100 Original-Received: by alf1.mrc-lmb.cam.ac.uk (8.9.3) id LAA35114; Mon, 30 Sep 2002 11:40:49 +0100 (BST) Original-To: Managers X-Mailer: ELM [version 2.4ME+ PL66 (25)] Xref: main.gmane.org gmane.os.tru64.managers:1899 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1899 All, I discovered a few world-readable files in my mail-spool directory recently (probably as a result of recovering lost mail etc). I did what I thought was the sensible thing and chmod'd them to 600, and lo and behold, two of them shrank. Why would this happen? Does one have to make sure that the file is closed before chmod'ing? And if so, how does one avoid a race condition if the file gets opened at the instant of the chmod? Has anyone else had this happen to them? ES40, V5.1 PK4. Cheers, Terry Terry Horsnell (tsh@mrc-lmb.cam.ac.uk) I.T. Manager Medical Research Council Lab of Molecular Biology Hills Road CAMBRIDGE CB2 2QH U.K. Phone: +44 (0)1223 248011 Fax: +44 (0)1223 213556