Write permissions in temp file

Questions about Wine on Linux
Locked
twowheels32
Newbie
Newbie
Posts: 2
Joined: Mon Sep 27, 2021 6:58 am

Write permissions in temp file

Post by twowheels32 »

During install and when trying to run Anaconda conda, I am getting

Code: Select all

c:\anaconda3>./_conda.exe --verbose
[79] INTERNAL ERROR: cannot create temporary directory!
From my linux terminal, the term directory :

Code: Select all

$ ll /home/timmy/.wine/drive_c/users/timmy/Temp
total 4
drwxrwxrwt 12 timmy timmy  240 Sep 27 13:13 ./
drwxrwxr-x 19 timmy timmy 4096 Sep 27 11:09 ../
d---------  2 timmy timmy   40 Sep 27 12:54 _MEI792/
d---------  2 timmy timmy   40 Sep 27 12:54 _MEI793/
d---------  2 timmy timmy   40 Sep 27 12:54 _MEI794/
d---------  2 timmy timmy   40 Sep 27 12:54 _MEI795/
d---------  2 timmy timmy   40 Sep 27 12:54 _MEI796/
d---------  2 timmy timmy   40 Sep 27 13:13 _MEI812/
d---------  2 timmy timmy   40 Sep 27 13:13 _MEI813/
d---------  2 timmy timmy   40 Sep 27 13:13 _MEI814/
d---------  2 timmy timmy   40 Sep 27 13:13 _MEI815/
d---------  2 timmy timmy   40 Sep 27 13:13 _MEI816/


It seems to create directories with no r/w permission and then fails because it can't itself write into them!?
twowheels32
Newbie
Newbie
Posts: 2
Joined: Mon Sep 27, 2021 6:58 am

Re: Write permissions in temp file

Post by twowheels32 »

I found a quick fix:
I think this is a bug in wine. The hack that has got me past it is as follows:

Created a FAT image in a ram disk and mounted it over teh wine user's Temp directory

Code: Select all

$ sudo mkdir /ramdisk
$ sudo mount -t tmpfs -o rw,size=1G tmpfs /ramdisk

$ sudo dd if=/dev/zero of=/ramdrive/test.img count=500 bs=1M
$ sudo mkfs.vfat test.img 
$ sudo mount test.img /mnt/test
add line to /etc/fstab:

/ramdrive/test.img /home/timmy/.wine/drive_c/users/<user>/Temp vfat dmask=000,fmask=0111,user 0 0

And maybe change permissions is you can't access the new ramdrive:

Code: Select all

chmod a+rw /ramdrive/test.img
That way the filesystem it us written to has no write permissions to stop it writing again.
Not sure if this could throw up security issues, but can't be as bad as running wine as root.

I'm still having trouble with shell function in recent Anaconda though, so have replaced it with v4.2.0 from the archive (5 years out of date!) and it all works fine.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Write permissions in temp file

Post by jkfloris »

Known bug 49334
Read viewtopic.php?f=8&t=34867 for a possible workaround.
Locked