I am trying to write to a text file but I believe my permissions on the directory are incorrect and so are not allowing me to do so. My return value that write() returns is a number greater than 0 and appears to be the number of bytes which I am trying to write and the file is successfully created. However, when I run "ls -l" on this file I see that there are no permissions set what so ever and there is no data in the file. My open call is using the flags O_RDWR | O_CREAT also