alzen: Hello Adam, I totally appreciate your work but still I have one problem with it. All is working fine yet I share the PC with my son and we play games together, even though we have shared games folder that works well when another account wants to play game installed by different user we get this error:
wine: '/mnt/dane/GOG/Oblivion/prefix' is not owned by you
wineserver: /mnt/dane/GOG/Oblivion/prefix is not owned by you Of course it is an example of Oblivion. Is there any solution for that?
The simplest way to manage this is usually to grant multiple users full access to the shared games directory via group permissions. Most Linux distros already come with an unassigned legacy group called "games" -- but I'll add the command here in case yours does not.
sudo groupadd games sudo usermod -a -G games YOUR_USER_NAME sudo usermod -a -G games YOUR_SONS_USER_NAME sudo chown -R YOUR_USER_NAME:games /the/shared/games/dir/path sudo chmod -R g+rw /the/shared/games/dir/path The above commands:
• Create the "games" group
• Adds you to the "games" group (replace YOUR_USER_NAME with your user name :)
• Adds your son to the "games" group
• Recursively sets you as the owning user and "games" as the owning group of the shared games directory
• Recursively adds read/write permission to the shared games directory for all members of the "games" group
Depending on your intent and current file permissions, you may want to make that last command g+rwX (to grant full read, write, and execute permissions) -- though that shouldn't be necessary if you're running the games through Wine.
It's possible to update your group list in place for a given terminal session after adding yourself to a group using the
sg command, but you're better off logging out and back in after updating the group information.