In our SMB/CIFS server implementation based on JLAN we want to make all files read-only. Thus, we set the read-only flag in the org.alfresco.jlan.server.filesys.FileInfo object. But it looks like that this is ignored.
Also the little example in the JLAN distribution jlanConfig.xml doesn't work. That is, a file with read-only permissions is presented by the SMB/CIFS server of the example as a writable file. I've looked into the source code of class org.alfresco.jlan.smb.server.disk.JavaFileDiskDriver. Line 104 and 115 in method buildFileInformation() reveal that the read-only flag of java.io.File object is transferred to the FileInfo object.