tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* chmod query
@ 2002-09-30 10:40 Horsnell T.
  0 siblings, 0 replies; only message in thread
From: Horsnell T. @ 2002-09-30 10:40 UTC (permalink / raw)




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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-30 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-30 10:40 chmod query Horsnell T.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox