[Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

Robert Jordan robertj at gmx.net
Fri May 28 17:06:47 EDT 2010

On 28.05.2010 22:50, sberryman wrote:
> I'm not that familar with linux so I tried making a few changes to the passwd
> file without any luck.
> Here is what is in there for the apache user (www-data):
> www-data:x:33:33:www-data:/var/www:/bin/sh
> * i've tried changing the owner of /var/www to www-data and that didnt help
> * then i created a directory /home/www-data and changed the owner to
> www-data as well
> * then i tried changing the shell to /bin/bash with both /var/www and
> /home/www-data
> After each change to the passwd file i restarted apache. Any suggestions?

I have no idea why is this failing on your system. Maybe Apache
does not have access to /etc/passwd or something else security related.
Or a bug in Mono's g_get_home_dir().

Try to run the test below

1) under your account
2) as "www-data" (sudo su - www-data)


using System;

class Test
     static void Main ()
         Console.WriteLine (Environment

More information about the Mono-devel-list mailing list