If you mount a samba share on a W2K client with sfu, all files are shown as directories by ls, i.e.: C:\> net use T: \\samba\tmp C:\> T: T:\> echo hello world > file T:\> type file hello world Now go to sfu shell: sfu:/dev/fs/T$ ls -l file drw-rw-r-- 1 3003 3003 14 Dec 1 01:15 file File size is ok, you can even do sfu:/dev/fs/T$ cat file hello world But you get an error for sfu:/dev/fs/T$ echo 2 >> file bash: file: Permission denied On shares from a windows server, this doesn't occur. Outside from sfu, everything is fine, too.
Please test this with the latest Samba 3.0.21 pre-release code (or the full release which will be released this week) as there have been many changes in this area. Jeremy.
I now tested with 3.0.21rc1, but the behaviour remains the same. Just for completeness: the ls.exe from the sfu common dir reports the file as file, only within sfu, i.e. when using the binary C:\sfu\bin\ls, it is reported as directory. C:\>c:\sfu\common\ls.exe -l T:\file -rw-rw-r-- 1 3003 3003 14 Dec 1 01:26 /dev/fs/T/file (There is no change for #3287 either. I will add that there, too)
*** This bug has been marked as a duplicate of 3287 ***