We've mounted a CIFS share from a Windows Server 2008 R2 machine on an RHEL 4u6 box, as 'cifs' filesystem, with full permissions on both the Windows and Linux sides so that it is possible to write to the mounted filesystem on Linux. However, we can't successfully touch files in the filesystem:
touch: setting times of `/mnt/testhub/testfile': Permission denied
What is the reason that touch fails? I've seen that for instance vim, on other hand, is able to update file modification times.
I found the reason, by fooling around. It turns out that files are created with root as the owner and 755 for permissions. I'm in the owning group, but as it has only read access touch is not able to update the file after creating it :)