[Mono-devel-list] Default permissions for new files created.
Miguel de Icaza
miguel at novell.com
Tue Jan 20 15:58:21 EST 2004
The .NET API does not have permission flags on file creation, nor
does it expose a way of changing the permissions on a file.
In Mono we have chosen to make the default be read-write for the
user, and no permissions for the group or the rest of the world. This
means that files created with Mono applications wont be open to the
public by default which might be considered a good security feature, but
it might also be considered a problem for most applications which do not
care about this.
Bug 42706 is being used to track this.
A few issues to consider:
On Unix the umask is used to clear out some permission bits,
so we could change the default to public readability, and
then have apps that care about security use Mono.Posix calls
Maybe we should not require people to do the above by default.
More information about the Mono-devel-list