It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
So I don't know if I've been running the game wrong or something, but whenever I try running ./start.sh in my Armello directory, I get permission denied. I tried resolving this by giving passthrough permissions to all of the subdirectories but then this happens:
(replaced some irrelevant data with dots)

.......:~/Games/Armello$ ./start.sh
Running Armello
Set current directory to ....../Armello/game
Found path: ...../Armello/game/armello.x86_64
There is no data folder

And then it ends. Running it as super user makes the game run just fine though, albeit with my in-game name being the super user as well, is there any way to fix this?

Edit:
In case anyone else is having issues with this, my solution ended up being a script that would go through every subdirectory of the Armello directory, not only the immediate ones. I used a script because it would be too tedious to just change the permissions on everything manually. The script is as follows and allows me to run the game:

#!/bin/bash
_dir="${1:-.}"
_fperm="0777"
_dperm="0777"
_ugperm="root:root"
_chmod="/bin/chmod"
_chown="/bin/chown"
_find="/usr/bin/find"
_xargs="/usr/bin/xargs"

echo "Setting permissions for every file and directory under \"$_dir\""
read -p "Your current dir is ${PWD}. Are you sure (y / n) ?" ans
if [ "$ans" == "y" ]
then
echo "Changing file onwership to $_ugperm for $_dir..."
$_chown -R "${_ugperm}" "$_dir"

echo "Setting $_fperm permission for $_dir directory...."
$_chmod -R "${_fperm}" "$_dir"

echo "Setting $_dperm permission for $_dir directory...."
$_find "$_dir" -type d -print0 | $_xargs -0 -I {} $_chmod $_dperm {}
fi

This script needs to be run on your Armello directory, and also on your ~/.config/unity3d/League\ Of\ Geeks/ directories
This is a slightly re-purposed version of a script I found on cyberciti dot biz.

As I'm a new user I'm not allowed to post complete links I'm afraid.
Post edited February 27, 2016 by theKrevFox
No posts in this topic were marked as the solution yet. If you can help, add your reply
This is a bad idea. Don't do it. If the game doesn't work correctly as a normal user it's a bug and you should send in a support ticket.
As for the script, it's not even necessary. You really should read the man pages for chown & chmod paying particular attention to the -R option. Why are you changing the owner and group to root anyway?
avatar
theKrevFox: So I don't know if I've been running the game wrong or something, but whenever I try running ./start.sh in my Armello directory, I get permission denied. I tried resolving this by giving passthrough permissions to all of the subdirectories but then this happens:
(replaced some irrelevant data with dots)

.......:~/Games/Armello$ ./start.sh
Running Armello
Set current directory to ....../Armello/game
Found path: ...../Armello/game/armello.x86_64
There is no data folder

And then it ends. Running it as super user makes the game run just fine though, albeit with my in-game name being the super user as well, is there any way to fix this?

Edit:
In case anyone else is having issues with this, my solution ended up being a script that would go through every subdirectory of the Armello directory, not only the immediate ones. I used a script because it would be too tedious to just change the permissions on everything manually. The script is as follows and allows me to run the game:

#!/bin/bash
_dir="${1:-.}"
_fperm="0777"
_dperm="0777"
_ugperm="root:root"
_chmod="/bin/chmod"
_chown="/bin/chown"
_find="/usr/bin/find"
_xargs="/usr/bin/xargs"

echo "Setting permissions for every file and directory under \"$_dir\""
read -p "Your current dir is ${PWD}. Are you sure (y / n) ?" ans
if [ "$ans" == "y" ]
then
echo "Changing file onwership to $_ugperm for $_dir..."
$_chown -R "${_ugperm}" "$_dir"

echo "Setting $_fperm permission for $_dir directory...."
$_chmod -R "${_fperm}" "$_dir"

echo "Setting $_dperm permission for $_dir directory...."
$_find "$_dir" -type d -print0 | $_xargs -0 -I {} $_chmod $_dperm {}
fi

This script needs to be run on your Armello directory, and also on your ~/.config/unity3d/League\ Of\ Geeks/ directories
This is a slightly re-purposed version of a script I found on cyberciti dot biz.

As I'm a new user I'm not allowed to post complete links I'm afraid.
Did you install the game as root? If so, that's why you need to run it as root.