diff -urN wine-7.0-orig/dlls/ntdll/unix/server.c wine-7.0/dlls/ntdll/unix/server.c
--- wine-7.0-orig/dlls/ntdll/unix/server.c	2022-01-19 05:52:35 +0900
+++ wine-7.0/dlls/ntdll/unix/server.c	2022-03-23 20:04:38 +0900
@@ -1144,22 +1144,12 @@
  */
 static int setup_config_dir(void)
 {
-    char *p;
     struct stat st;
     int fd_cwd = open( ".", O_RDONLY );
 
     if (chdir( config_dir ) == -1)
     {
         if (errno != ENOENT) fatal_perror( "cannot use directory %s", config_dir );
-        if ((p = strrchr( config_dir, '/' )) && p != config_dir)
-        {
-            while (p > config_dir + 1 && p[-1] == '/') p--;
-            *p = 0;
-            if (!stat( config_dir, &st ) && st.st_uid != getuid())
-                fatal_error( "'%s' is not owned by you, refusing to create a configuration directory there\n",
-                             config_dir );
-            *p = '/';
-        }
         mkdir( config_dir, 0777 );
         if (chdir( config_dir ) == -1) fatal_perror( "chdir to %s", config_dir );
         MESSAGE( "wine: created the configuration directory '%s'\n", config_dir );
diff -urN wine-7.0-orig/libs/wine/config.c wine-7.0/libs/wine/config.c
--- wine-7.0-orig/libs/wine/config.c	2022-01-19 05:52:35 +0900
+++ wine-7.0/libs/wine/config.c	2022-03-23 20:04:38 +0900
@@ -458,7 +458,6 @@
         }
     }
     if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir );
-    if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir );
     init_server_dir( st.st_dev, st.st_ino );
 }
 
