Permissions
What should my /var/games/minecraft
directory look like, generally:
root@mineos games/minecraft# ls -la /var/games/minecraft/*
/var/games/minecraft/archive:
total 12
drwxrwxr-x 3 root root 4096 Apr 20 18:40 . <--- . and .. should be owned by root:root in all cases
drwxr-xr-x 7 root root 4096 Mar 7 18:06 ..
drwxrwxr-x 2 mc mc 4096 Apr 12 22:12 reree <---owned by a user that's not root
/var/games/minecraft/backup:
total 12
drwxrwxr-x 3 root root 4096 Apr 20 18:40 .
drwxr-xr-x 7 root root 4096 Mar 7 18:06 ..
drwxrwxr-x 2 mc mc 4096 Apr 12 22:12 reree <---owned by a user that's not root
/var/games/minecraft/import:
total 8
drwxrwxrwx 2 root mc 4096 Mar 7 18:06 . <--okay to be root:mc because we want mc to be able to upload here
drwxr-xr-x 7 root root 4096 Mar 7 18:06 ..
/var/games/minecraft/profiles:
total 20
drwxrwxr-x 5 root root 4096 Mar 25 18:12 .
drwxr-xr-x 7 root root 4096 Mar 7 18:06 ..
drwxrwxr-x 2 root root 4096 Mar 25 18:12 1.9 <-- all profiles should be owned by root:root
drwxrwxr-x 2 root root 4096 Mar 10 18:31 PocketMine-1266
drwxrwxr-x 2 root root 4096 Mar 10 18:31 PocketMine-980
/var/games/minecraft/servers:
total 12
drwxrwxr-x 3 root root 4096 Apr 20 18:40 .
drwxr-xr-x 7 root root 4096 Mar 7 18:06 ..
drwxrwxr-x 2 mc mc 4096 Apr 12 22:12 reree <-- this example has mc:mc, but can be any user:group