Samba 3.x file permissions on Windows share
We're trying to write a php script which will create directories and files on a smbmount share in a Windows 2003 server. Any commands that we use to mount the Windows share result in 755 permissions, but we need the script (running as user 'www-data') to be able to create these dirs and files.
smbmount /dir /dir -o uid=www-data gid=www-data
but the uid and gid aren't being accepted (just being ignored). We tried adding "unix extensions = no" in the smb.conf file but that also seems to be ignored.
At this time the best we can figure is to set 'umask=000' before mounting the drive, but it leaves too many permissions open, and the remote share is still being owned by root.