[Mono-list] Permissions of files created by a webservice

Mathias Tausig mathias.tausig at a-cert.at
Wed May 26 08:53:37 EDT 2010


Am 26.05.2010 13:49, schrieb Robert Jordan:
> On 26.05.2010 13:44, Mathias Tausig wrote:
>> Am 26.05.2010 12:18, schrieb Mathias Tausig:
>>> I would need to alter these permissions, but I am afraid I don't have a
>>> clue, where to look at. I am not even sure, if that't really a mono
>>> problem or an apache setting.
>>
>> I dug a bit deeper in the meanwhile, and found out, that it is a mono
>> and not an apache issue. The umask of the mono process started by apache
>> has an umask of 077. How can I change it?
> 
> Assuming you're using mod_mono:
> 
> MonoUnixUmask 0022
> 

Thanks for the tip. I tried it, but this directive doesn't do anything.
It doesn't even complain if I enter a bogus value (like 999999 instead
of 0002) for the umask. Here is my VirtualHost configuration:

<IfDefine SSL>
<IfDefine !NOSSL>
<VirtualHost *:8080>
  ServerName localhost
  ServerAdmin web-admin at localhost
  DocumentRoot /etc/zert/htdocs/
  MonoUnixUmask 0002
  MonoServerPath localhost "/usr/bin/mod-mono-server2"

  MonoApplications localhost "/:/etc/zert/htdocs"
  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias localhost
    SetHandler mono
  </Location>

  SSLEngine on

  SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

  SSLCertificateFile /etc/zert/ssl.cer
  SSLCertificateKeyFile /etc/zert/ssl.key
  SSLCACertificateFile /etc/zert/ca.pem

  SSLVerifyClient require
        SSLVerifyDepth  10
        SSLOptions +ExportCertData
</VirtualHost>
</IfDefine>
</IfDefine>

I am using openSuse 11.0, apache2-2.2.8-28.10, apache2-mod_mono-2.6-1.2
(from the "mono" repo of the opensuse build service).

cheers
Mathias


More information about the Mono-list mailing list