Linux could write to read only files on FreeBSD NFS server

Alan Batie alan at peak.org
Thu Feb 27 23:40:13 UTC 2020


On 2/27/20 3:31 PM, Luoqi Chen wrote:

> Yes, except to leave the read bit(s) on. I can confirm that the write would
> fail on centos 6/7/8 if all bits are cleared.
> 

That makes no difference:

<zmail03-admin.peak.org> [117] $ sh -x ~/nfst
+ cat /etc/redhat-release
CentOS release 6.10 (Final)
+ df .
Filesystem            1K-blocks     Used  Available Use% Mounted on
zbackups02.peak.org:/zbackups/zmail03-admin
                     5027215872 91682304 4935533568   2% /zbackups
+ rm -f x
+ touch x
+ chmod 444 x
+ ls -l x
-r--r--r--. 1 alan root 0 Feb 27 15:38 x
+ echo foo
/home/alan/nfst: line 9: x: Permission denied
+ cat x
<zmail03-admin.peak.org> [118] $

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4036 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20200227/f50de4f6/attachment.bin>


More information about the freebsd-fs mailing list