A Samba server had no way of knowing that an operation performed by the kernel CIFS client was in fact a file creation. As a result, the "force create mode" (which sets permissions of a file during its creation) was never initiated and appeared to be broken. The file creation was handled by a POSIX open call and to Samba the file creation then appeared as a simple 'chmod' operation. By using the POSIX open call in the samba client, the server can now properly recognize the file creation and apply the "force create mode". Note: This issue was fixed on the server part of Red Hat Enterprise Linux 4, however, this issue remains broken on the client part. Therefore, the "force create mode" works properly on Red Hat Enterprise Linux 4 systems with newer clients (for example, Red Hat Enterprise Linux 5).