https://bugs.winehq.org/show_bug.cgi?id=56339
Bug ID: 56339 Summary: [13] Permission denied Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: olav.magi@hotmail.com Distribution: ---
If I try to save or overwrite a file to the linux Ubuntu drive, I get the error "[13] Permission denied".
I have been saving without any error for many years but now I suddenly cannot. What could be the issue and solution?
https://bugs.winehq.org/show_bug.cgi?id=56339
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
--- Comment #1 from Austin English austinenglish@gmail.com --- We're going to need more details.
What program are you running, and what are the steps involved in reproducing the error? What folder are you trying to save to? Do you have permissions to write there?
Please attach the terminal output.
https://bugs.winehq.org/show_bug.cgi?id=56339
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #2 from olav.magi@hotmail.com --- (In reply to Austin English from comment #1)
We're going to need more details.
What program are you running, and what are the steps involved in reproducing the error? What folder are you trying to save to? Do you have permissions to write there?
Please attach the terminal output.
I am running Translation Workspace XLIFF Editor 2.69.1 build:2023-06-14T15:15:17.757000 by Lionbridge. To reproduce the error, you must open a file (.xlf, .xlz or .xliff) with the aforementioned program, then press Enter in order to edit the first editable segment, then click "Store and close segment" from the bottom menu bar which starts with "Filter:", then click "Save current file". I am trying to save to a subfolder from Desktop. I do not know if I have the permissions to write there at the moment but for 2 years this has not been an issue.
How to create the terminal output?
I am using Bottles 51.11 which is using Wine I guess.
Debugging info:
DE/WM: ubuntu Display: X.org: true X.org (port): :99.0 Wayland: true Graphics: vendors: amd: vendor: amd envs: DRI_PRIME: '1' icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json prime: integrated: null discrete: null Kernel: Type: Linux Version: 6.5.0-18-generic Disk: Total: 8092983296 Free: 8092819456 RAM: MemTotal: 15.1GiB MemAvailable: 10.9GiB Bottles_envs: null
https://bugs.winehq.org/show_bug.cgi?id=56339
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution|--- |INVALID CC| |o.dierick@piezo-forte.be
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Permissions to your Linux user directory is up to you to configure properly. As for the Bottles wineprefix directory contents permissions, check with Bottles.
You can get support for Bottles there: https://github.com/bottlesdevs/Bottles/issues
Regards.
https://bugs.winehq.org/show_bug.cgi?id=56339
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[13] Permission denied |Permission denied error | |when trying to save a file | |in Translation Workspace | |XLIFF Editor using | |third-party Bottles
https://bugs.winehq.org/show_bug.cgi?id=56339
olav.magi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |REOPENED
--- Comment #4 from olav.magi@hotmail.com --- (In reply to Olivier F. R. Dierick from comment #3)
Hello,
Permissions to your Linux user directory is up to you to configure properly. As for the Bottles wineprefix directory contents permissions, check with Bottles.
You can get support for Bottles there: https://github.com/bottlesdevs/Bottles/issues
Regards.
How to check the permissions of my Linux user directory? I have already opened the support ticket at https://github.com/bottlesdevs/programs/issues/305.
https://bugs.winehq.org/show_bug.cgi?id=56339
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|REOPENED |RESOLVED
--- Comment #5 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
(In reply to olav.magi from comment #4)
How to check the permissions of my Linux user directory?
That is basic Linux support that you're asking there. The WineHQ forums are best suited for that: https://forum.winehq.org/
There are however plenty of resources online that can answer that question. For example: https://stackoverflow.com/questions/338037/how-to-check-permissions-of-a-spe...
ls -ld ~/Desktop ls -ld ~/Desktop/subdir
You're looking for write permission for the 'owner' of the directory. Also make sure that the owner is your linux user and that you run the application with that user (not root or a dedicated flatpack user).
~$ ls -ld Desktop drwxr-xr-x 2 olivier olivier 4096 12 aoû 2023 Desktop d → file is a directory rwx → owner permission Read-Write-eXectue (Execute for directory means can be entered/list content) r-x → group permission Read-eXecute r-x → everyone else permission Read-eXecute olivier olivier → owner + group
I have already opened the support ticket at https://github.com/bottlesdevs/programs/issues/305.
Good. Now you should wait for replies there.
Please don't reopen the issue unless the Bottles developers tells you it's a Wine issue. It can be reopened later, even if it gets closed in the meantime. You don't have to reopen this bug to ask new question. Just adding your comments is fine.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #6 from olav.magi@hotmail.com --- I got "drwxr-xr-x 17 olav olav 69632 veebr 25 18:09 /home/olav/Töölaud" from "ls -ld ~/Töölaud". Is that fine result?
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #7 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to olav.magi from comment #6)
I got "drwxr-xr-x 17 olav olav 69632 veebr 25 18:09 /home/olav/Töölaud" from "ls -ld ~/Töölaud". Is that fine result?
Hello,
Should be good, but:
The Flatpack version of Bottles runs in a sandboxed environment that doesn't have access to directories outside of the sandbox.
Check the Bottles documentation for example to allow Flatpack to write to directories outside the sandbox: https://docs.usebottles.com/flatpak/expose-directories
You may need to run something like this to allow the application running in Bottles to save files to your desktop directory: flatpak override --user --filesystem="/home/olav/Töölaud" com.usebottles.bottles
Regards.
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #8 from olav.magi@hotmail.com --- I ran something like this without any errors. Also I took advantage of an external program named Flatseal where I allowed Bottles to access/view Desktop folder. But I am still getting the aforementioned error.
https://bugs.winehq.org/show_bug.cgi?id=56339
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #9 from joaopa jeremielapuree@yahoo.fr --- The first thing to do is to try with the latest vanilla wine (currently it is wine-9.3) without any bottles. If that works that means it is not a wine bug. If it does not work it a wine bug that needs to be fixed.
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #10 from olav.magi@hotmail.com --- (In reply to joaopa from comment #9)
The first thing to do is to try with the latest vanilla wine (currently it is wine-9.3) without any bottles. If that works that means it is not a wine bug. If it does not work it a wine bug that needs to be fixed.
You mean I have to use the following commands in the following sequence:
sudo dpkg --add-architecture i386 sudo mkdir -pm755 /etc/apt/keyrings sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources sudo apt update sudo apt install --install-recommends winehq-devel
Please confirm that it is exactly the needed commands for Terminal of Ubuntu 22.04 LTS for trying the latest vanilla wine (currently it
is wine-9.3) without any bottles?
Also please confirm that installing the aforementioned version of Wine independentlt from Bottles, the Wine in Bottles and the independent installation of Wide does not conflict.
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #11 from olav.magi@hotmail.com --- (In reply to joaopa from comment #9)
The first thing to do is to try with the latest vanilla wine (currently it is wine-9.3) without any bottles. If that works that means it is not a wine bug. If it does not work it a wine bug that needs to be fixed.
I saw that Bottles have a setting where I can choose which one to use: soda or wine. Screenshot: https://i.stack.imgur.com/OmNqD.png If I choose Wine, is it the same as I had installed Wine separately?
https://bugs.winehq.org/show_bug.cgi?id=56339
olav.magi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |REOPENED
--- Comment #12 from olav.magi@hotmail.com --- (In reply to joaopa from comment #9)
The first thing to do is to try with the latest vanilla wine (currently it is wine-9.3) without any bottles. If that works that means it is not a wine bug. If it does not work it a wine bug that needs to be fixed.
I tried saving with the latest vanilla wine and it worked. This suggests that the issue is with Bottles. As I have saved with Bottles before, then perhaps some update of Bottles has to do with the error in question.
https://bugs.winehq.org/show_bug.cgi?id=56339
olav.magi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #13 from olav.magi@hotmail.com --- I will continue to seek help with Bottles developers and post also here the solution if they find it.
https://bugs.winehq.org/show_bug.cgi?id=56339
--- Comment #14 from joaopa jeremielapuree@yahoo.fr ---
I tried saving with the latest vanilla wine and it worked.
So it is not a wine bug. Bottles are not supported in this tracker. No need to report here what bottles developers will find.
Can an administrator close this bug as INVALID again?
https://bugs.winehq.org/show_bug.cgi?id=56339
olav.magi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID Status|RESOLVED |CLOSED
--- Comment #15 from olav.magi@hotmail.com --- I will do it myself.