Winecfg access denied

Questions about Wine on Linux
Post Reply
jerryh
Newbie
Newbie
Posts: 4
Joined: Mon Mar 09, 2020 11:12 am

Winecfg access denied

Post by jerryh » Fri Mar 13, 2020 12:16 pm

I've installed v5 under Mint 19.3

when I run winecfg, I get

Code: Select all

0034:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0x2f1f268, 0x5ad568, 0x2f1f26c, 0x2f1f260
0034:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0x2f1f268, 0x5ad780, 0x2f1f26c, 0x2f1f260
GUI opens to default application settings.
Screenshot.png
Click on drives tab and get

Code: Select all

wine: Read access denied for device L"\\??\\E:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\F:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
I presume its something to do with the E drive being ntfs format.
The wine folder etc has user and group as the 'jerry'
The F: drive was where I tried to add a drive then deleted it in the gui.
Not even tried to run an app yet.
Can anybody help on this ? it would be appreciated
J

User avatar
DarkShadow44
Level 8
Level 8
Posts: 1111
Joined: Tue Nov 22, 2016 5:39 pm

Re: Winecfg access denied

Post by DarkShadow44 » Fri Mar 20, 2020 3:12 pm

That's not necessarily errors. When everything works, where's the problem?

joh_d_s
Newbie
Newbie
Posts: 1
Joined: Sat Jan 02, 2021 6:32 pm

Re: Winecfg access denied

Post by joh_d_s » Sun Jan 03, 2021 3:12 pm

These access errors are triggered when one or more DOS devices points to a Linux mount point like the default Z: pointing to /.
When you access the Z: drive the wineserver will try to open to corresponding Linux block device i.e. /dev/sda5.
As the block devices are only accessible by root trying to access the block device will result in access denied.

To avoid the errors change the .wine/dosdevices/z: to point to a subdirectory instead of the mount point.

In the following accessing E: will result in access denied errors because the wineserver will try to access /dev/sda2

Code: Select all

lrwxrwxrwx 1 john john  4 Jan  3 20:57 y: -> /mnt
lrwxrwxrwx 1 root root 11 Jan  3 20:54 z: -> /home/john/

/dev/sda2 on /mnt type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
Snippet of strace of wineserver64 when accessing Y: from explorer:

Code: Select all

20801 read(20, "\0\0\0\0@\0\0\0\0\0\0\0\0\0\0\0/dev/sda2", 25) = 25
20801 openat(AT_FDCWD, "/dev/sda2", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied)

Post Reply