any local files created by the streams api will have their initial permissions set according to the operating system defaults under unix based systems this means that the umask of the process will be used under windows the file will be owned by the creating process any remote files will be created according to the url wrapper that was used to open the file and the credentials supplied to the remote server 