It probably is. Without editing the permissions on the Mac before transferring them, the default permissions for files are 0644 (-rw-r--r--) and for directories are 0755 (drwxr-xr-x), and since Leopard they transfer intact, totally ignoring any masks or force create mode statements in /etc/samba/smb.conf.
(See http://discussions.apple.com/thread.jspa?messageID=7349655 for more detail).
/etc/samba.smb.conf
[global]
interfaces = egiga0
unix charset = UTF8
workgroup = workgroups
netbios name = dlink-09391A
server string = DNS-321
hosts allow =
hosts deny =
security = SHARE
encrypt passwords = yes
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
max xmit = 65535
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
use sendfile =yes
disable spoolss = yes
[ web_page ]
comment = Enter Our Web Page Setting
path = /mnt/web_page
valid users =
read only = yes
guest ok = yes
[ Volume_1 ]
comment =
path = /mnt/HD_a2
valid users =
read only = no
guest ok = yes
oplocks = no
map archive = no
[ Volume_2 ]
comment =
path = /mnt/HD_b2
valid users =
read only = no
guest ok = yes
oplocks = no
map archive = no
Windows, on the other hand, properly respects the file and directory masks in the [global] section of /etc/samba/smb.conf on the NAS, which is why all your transfers from Windows to the NAS gain 0777 permissions.
Editing /etc/samba/smb.conf on the NAS to add:
unix extensions = off
to the [global] section, then restarting samba works, but does not survive a reboot. I guess I need to make up a script to run on startup that will stop samba, copy a modifed smb.conf to /etc/samba/ and restart samba.
Kevin.