[Samba] win98 opening remote lmhosts as read-write
Andreas Hasenack
ahasenack at terra.com.br
Thu Dec 1 13:21:11 GMT 2005
I'm playing with the #INCLUDE directive available for windows'
\windows\LMHOSTS file. It works like this:
192.168.1.10 PANDORA #PRE
#INCLUDE \\PANDORA\public\lmhosts
This makes windows (at least the 98 version I'm testing) fetch the
remote lmhosts file.
During boot, windows 98 fetches this file allright. But with a catch:
for some reason, it opens it in read-write mode, even though nothing is
written to it. This is bad :( It means I would need to expose this file
for anonymous remote read-write access.
I thought about using the fake_perms VFS module to overcome this, but it
only intercepts stat() and fstat(). Would it be a bad idea to extend it
to also intercept the open call and lie about the file being opened as
read-write?
More information about the samba
mailing list