Variant behaviour from truncate over NFS and UFS
Kris Kennaway
kris at FreeBSD.org
Thu Nov 15 14:05:18 PST 2007
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
More information about the freebsd-standards
mailing list