[Solved] Lutris Permission Error

I am trying to install a game with lutris and I keep getting this error

PermissionError(13, ‘Permission denied’)

this is from right before the error

0029:err:wintab32:X11DRV_LoadTabletInfo Unable to initialize the XInput library.
0029:err:wintab32:LoadTablet LoadTabletInfo(0x1004c) failed
0044:err:wintab32:X11DRV_LoadTabletInfo Unable to initialize the XInput library.
0044:err:wintab32:LoadTablet LoadTabletInfo(0x10088) failed
Running /usr/bin/wine /home/*****/.cache/lutris/installer/battlefield-1/OriginThinSetup.exe /silent

ran it via the terminal and got this

Running /usr/bin/wine /home/*****/.cache/lutris/installer/battlefield-1/OriginThinSetup.exe /silent
2019-02-10 02:23:43,674: Error while completing task <bound method CommandsMixin.merge of <lutris.installer.interpreter.ScriptInterpreter object at 0x7f6329765d68>>: [Errno 13] Permission denied: ‘/mnt/MintData/Lutris/Games/Battlefield1/drive_c/Program Files (x86)/Origin/updateorigin.sh’
<class ‘PermissionError’> [Errno 13] Permission denied: ‘/mnt/MintData/Lutris/Games/Battlefield1/drive_c/Program Files (x86)/Origin/updateorigin.sh’
File “/usr/lib/python3/dist-packages/lutris/util/jobs.py”, line 30, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3/dist-packages/lutris/installer/commands.py”, line 261, in merge
self._killable_process(shutil.copy, src, dst)
File “/usr/lib/python3/dist-packages/lutris/installer/commands.py”, line 516, in _killable_process
result = result_obj.get() # Wait process end & reraise exceptions
File “/usr/lib/python3.6/multiprocessing/pool.py”, line 670, in get
raise self._value

Tried running it with sudo and origin started, but was stuck on the loading part.

“Permission denied” indicates that MAC is blocking it (DAC outputs ‘operation not permitted’)

Do a

grep denied.*wine /var/log/audit/audit.log

Or alternatively

ausearch -m avc,wine

And post what it says. What OS? Mint?

Yes it is Mint. The grep command does not seem to do anything. The ausearch one does not seem to work either.

Linux Mint 19.1
Kernel 4.15.0-45-generic
Cinnamon 4.0.9
lutris-0.5.0.1
wine-3.0 (Ubuntu 3.0-1ubuntu1)

https://lutris.net/games/install/7607/view

Maybe it’s not blocking wine then but rather something else, run the same commands leaving ‘wine’ out

grep denied /var/log/audit/audit.log

outputs nothing and no changes

Right, might be a DAC issue afterall then. If you’ve run lutris as root you wouldn’t have access to the created files as a normal user.
Try deleting

/home/username/.cache/lutris
/home/username/.local/share/lutris
/home/username/.config/lutris

And starting over, this time without sudo.

no change

Still getting permission errors or is Origin stuck at loading?

still getting the permission error

Check if the

/mnt/MintData/Lutris/Games/Battlefield1/drive_c/Program Files (x86)/Origin/

Directory actually exists when you run lutris, it might not get created

The Origin folder seems to be owned by root

Is that why its giving me the error?

Most likely you don’t have the permissions to execute anything from a directory your user don’t own.

sudo chown -R username /mnt/MintData/Lutris/Games/Battlefield1/drive_c/Program Files (x86)/Origin/

(chown changes the ownership of files and folders - ‘change owner’, the -R flag makes the command recursive)

1 Like

so i checked the permissions section of the folder properties and it lists my account as the owner (not root). With folder access set to “Access Files”. Also, it is not really possible for me to run that command because the folder is created during the lutris setup and is deleted upon the closing of the error message dialog.

What about the fstab settings, there’s no ‘noexec’ flag for the MintData drive?

i have a folder on that same drive with other programs. like gravit designer / fritzing / labx and they all execute just fine

Hmm.
Thing is that if you’re able to run it with sudo but not as a normal user then the issue is with ownership and permissions, and judging by the log the issue is in the Origin directory, the script not being able to execute.
And you don’t need to run wine apps as root. Maybe try contacting the devs, might also python acting up inside wine or some sorts.

Edit: Apparmor isn’t blocking anything, the directory exists, the path is correct, you’re able to execute from the partition, and you have ownership of all files… (dunno why there’s a lock on the Origin folder tho)
Personally i’m out of ideas.

ok thanks