Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Can't play any games
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
DanZ
n00b
n00b


Joined: 24 Sep 2004
Posts: 47
Location: Erie PA USA

PostPosted: Tue Feb 25, 2014 1:09 am    Post subject: [SOLVED]Can't play any games Reply with quote

I can't seem to play any games and I'm stumped.

I'm in the games group and directory permissions appear to be correct, but I can't access /usr/games/bin as my user at all.
Code:
dzmijewski@emachine ~ $ groups dzmijewski
wheel audio cdrom video usb users portage games dzmijewski

dzmijewski@emachine ~ $ /usr/games/bin/etr
bash: /usr/games/bin/etr: Permission denied

dzmijewski@emachine ~ $ ls -l /usr/games/bin
ls: cannot access /usr/games/bin: Permission denied

emachine dzmijewski # ls -l /usr/games/
total 4
drwxr-x--- 2 root games 4096 Feb 16 14:26 bin


emachine dzmijewski # ls -l /usr/games/bin/
total 564
-rwxr-x--- 1 root games 557216 Feb 16 14:26 etr
-rwxr-x--- 1 root games   1379 Feb 16 14:15 nethack
-rwxr-x--- 1 root games  10248 Feb 16 14:15 recover-nethack
What am I missing?

Last edited by DanZ on Tue Feb 25, 2014 6:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Tue Feb 25, 2014 7:02 am    Post subject: Reply with quote

did you log off/log on after the group change ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
DanZ
n00b
n00b


Joined: 24 Sep 2004
Posts: 47
Location: Erie PA USA

PostPosted: Tue Feb 25, 2014 7:23 am    Post subject: Reply with quote

Yes, in fact I've been trying to get this to work all month.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Feb 25, 2014 9:25 am    Post subject: Reply with quote

That doesn't seem like you are using ACL's. So I guess we can discard that.

I am not familiar with SELinux though, so if you are using it, you should check your policies or whatever they are called. If you don't know what SELinux is then probably you shouldn't worry about this.

Failing that, I would advice you to run fsck on that fs from a livecd. Sometimes, subtle fs corruption can cause this kind of weirdness. Anyway, what does the output of "stat" over the same files say?
Back to top
View user's profile Send private message
DanZ
n00b
n00b


Joined: 24 Sep 2004
Posts: 47
Location: Erie PA USA

PostPosted: Tue Feb 25, 2014 12:40 pm    Post subject: Reply with quote

I can't wrap my head around SELinux so I don't use it. I'll dig up my liveCD in a bit and try fsck. Here's output of stat for one of the files:
Code:
emachine dzmijewski # stat /usr/games/bin/etr
  File: ‘/usr/games/bin/etr’
  Size: 557216       Blocks: 1096       IO Block: 4096   regular file
Device: 803h/2051d   Inode: 4602574     Links: 1
Access: (0750/-rwxr-x---)  Uid: (    0/    root)   Gid: (   35/   games)
Access: 2014-02-16 14:26:51.421000000 -0500
Modify: 2014-02-16 14:26:51.434000000 -0500
Change: 2014-02-16 14:26:55.101000000 -0500
 Birth: -
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Feb 25, 2014 1:52 pm    Post subject: Reply with quote

what about the permissions of /usr/games

you have shown /usr/games/bin have r-x for group:games, but if a user cannot enter the /usr/games directory.
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
DanZ
n00b
n00b


Joined: 24 Sep 2004
Posts: 47
Location: Erie PA USA

PostPosted: Tue Feb 25, 2014 2:29 pm    Post subject: Reply with quote

Code:
emachine dzmijewski # ls -l /usr
total 192
drwxr-xr-x   2 root root  69632 Feb 24 22:40 bin
drwxr-x---   3 root games  4096 Feb 16 14:15 games
drwxr-xr-x 200 root root  20480 Feb 24 21:35 include
lrwxrwxrwx   1 root root      5 Jan 29 20:53 lib -> lib64
drwxr-xr-x   5 root root   4096 Feb  7 12:05 lib32
drwxr-xr-x  72 root root  61440 Feb 25 01:23 lib64
drwxr-xr-x  12 root root   4096 Feb 13 13:43 libexec
drwxr-xr-x   5 root root   4096 Jan 29 20:57 local
drwxr-xr-x 167 root root   4096 Feb  6 21:39 portage
drwxr-xr-x   2 root root   4096 Feb 24 21:35 sbin
drwxr-xr-x 134 root root   4096 Feb 21 11:29 share
drwxr-xr-x   3 root root   4096 Feb  8 20:16 src
lrwxrwxrwx   1 root root      8 Jan 29 20:57 tmp -> /var/tmp
drwxr-xr-x   6 root root   4096 Jan 29 21:55 x86_64-pc-linux-gnu
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Feb 25, 2014 2:44 pm    Post subject: Reply with quote

I would suspect either filesystem corruption or ACL - try:

Code:
getfacl /usr/games/bin


Recreate the dir, starting with:

Code:
mv /usr/games/{bin,badbin}
Back to top
View user's profile Send private message
DanZ
n00b
n00b


Joined: 24 Sep 2004
Posts: 47
Location: Erie PA USA

PostPosted: Tue Feb 25, 2014 6:24 pm    Post subject: Reply with quote

I checked SMART and ran both mhdd and fsck; everything checked out fine. Then I tried your suggestion to mv the dir and reemerged the game, and now it works. Thanks everyone for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum