Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2007 23:05:20 +0100
From:      Kris Kennaway <kris@FreeBSD.org>
To:        standards@FreeBSD.org
Subject:   Variant behaviour from truncate over NFS and UFS
Message-ID:  <473CC2A0.8020603@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
I came across the following variant behaviour.  On NFS:

hydra1# cd /nfs
hydra1# touch foo
hydra1# chmod a-w foo
hydra1# ls -l foo
-r--r--r--  1 4294967294  wheel  0 Nov 15 21:57 foo
hydra1# truncate -s 0 foo
truncate: foo: Permission denied
hydra1# chmod u+w foo
hydra1# truncate -s 0 foo

Compare to UFS:

hydra1# cd /tmp
hydra1# touch foo
hydra1# chmod a-w foo
hydra1# truncate -s 0 foo
hydra1# ls -l foo
-r--r--r--  1 root  wheel  0 Nov 15 21:57 foo

Which is correct?

Kris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?473CC2A0.8020603>