Re: [gentoo-user] xscavenger - game
On Fri, 5 Jul 2013 21:55:36 -0600 Joseph wrote: > On 07/05/13 23:36, David Relson wrote: > >On Fri, 5 Jul 2013 18:49:20 -0600 > >Joseph wrote: > > > >> I installed "xscavenger" and it installed without any problems but > >> I can seems to find this game anywhere. Yes, I'm in "games" group. > >> > >> >From the command line: > >> /usr/games/bin/scavenger > >> -bash: /usr/games/bin/scavenger: Permission denied > >> > >> /usr/games/bin/scavenger > >> -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger > >> > >> -- > >> Joseph > > > >User root has permissions rwx. Group games has permissions > >r-x. Everyone else has no access (permission ---). > > > >You're getting "Permission denied" because you're not running as > >root and you're not a member of group "games". > > > >Regards, > > > >David > > Thanks David for pointing it. > Your are correct. > > What was confusing to me is the fact that I logged into the system > via ssh to my account and "su" to use who was in group "games" but > for some reason or another the games would not execute. > > When I ssh directly to the user account, it worked :-/ Not sure if this was your problem, but since you said you were in the games group to start with... Note that after adding your user to any group, you need to log out and back in for that change to take affect. Existing sessions don't detect it. If you don't want to re-log in, you can "sg games" to open a new shell in the games group, or probably su -l to yourself as suggested. Cheers, Bryan
Re: [gentoo-user] xscavenger - game
On Sat, 06 Jul 2013 21:20:12 +0300, Thanasis wrote: > > su username - > > I think that sould be: > > su - username You're right. su is incredibly picky about the location of - on the command line, which is why I prefer to use -l. -- Neil Bothwick Someone who thinks logically is a nice contrast to the real world. signature.asc Description: PGP signature
Re: [gentoo-user] xscavenger - game
on 07/06/2013 12:03 PM Neil Bothwick wrote the following: > su username - I think that sould be: su - username
Re: [gentoo-user] xscavenger - game
On Fri, 5 Jul 2013 21:55:36 -0600, Joseph wrote: > What was confusing to me is the fact that I logged into the system via > ssh to my account and "su" to use who was in group "games" but for some > reason or another the games would not execute. su gives you the rights of the user but it not the same as logging in as that user. To do that use "su -l username" or "su username -". -- Neil Bothwick Cereal Killer Strikes Again! Cap'n Crunch found dead... signature.asc Description: PGP signature
Re: [gentoo-user] xscavenger - game
On 07/05/13 23:36, David Relson wrote: On Fri, 5 Jul 2013 18:49:20 -0600 Joseph wrote: I installed "xscavenger" and it installed without any problems but I can seems to find this game anywhere. Yes, I'm in "games" group. >From the command line: /usr/games/bin/scavenger -bash: /usr/games/bin/scavenger: Permission denied /usr/games/bin/scavenger -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger -- Joseph User root has permissions rwx. Group games has permissions r-x. Everyone else has no access (permission ---). You're getting "Permission denied" because you're not running as root and you're not a member of group "games". Regards, David Thanks David for pointing it. Your are correct. What was confusing to me is the fact that I logged into the system via ssh to my account and "su" to use who was in group "games" but for some reason or another the games would not execute. When I ssh directly to the user account, it worked :-/ -- Joseph
Re: [gentoo-user] xscavenger - game
On 07/05/13 22:37, Paul Hartman wrote: On Fri, Jul 5, 2013 at 10:27 PM, Joseph wrote: Maybe /usr/games/bin/ is not on the path? How do I check it, I forgot :-/ echo $PATH Path looks OK. /usr/games/bin is there $ echo $PATH /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/var/spool/fax/bin -- Joseph
Re: [gentoo-user] xscavenger - game
On Fri, Jul 5, 2013 at 10:27 PM, Joseph wrote: > Maybe /usr/games/bin/ is not on the path? > How do I check it, I forgot :-/ echo $PATH
Re: [gentoo-user] xscavenger - game
On Fri, 5 Jul 2013 18:49:20 -0600 Joseph wrote: > I installed "xscavenger" and it installed without any problems but I > can seems to find this game anywhere. Yes, I'm in "games" group. > > >From the command line: > /usr/games/bin/scavenger > -bash: /usr/games/bin/scavenger: Permission denied > > /usr/games/bin/scavenger > -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger > > -- > Joseph User root has permissions rwx. Group games has permissions r-x. Everyone else has no access (permission ---). You're getting "Permission denied" because you're not running as root and you're not a member of group "games". Regards, David
Re: [gentoo-user] xscavenger - game
On 07/05/13 21:45, Paul Hartman wrote: On Fri, Jul 5, 2013 at 7:49 PM, Joseph wrote: I installed "xscavenger" and it installed without any problems but I can seems to find this game anywhere. Yes, I'm in "games" group. From the command line: /usr/games/bin/scavenger -bash: /usr/games/bin/scavenger: Permission denied /usr/games/bin/scavenger -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger Probably does not help you solve your problem, but I just tried here and it worked for me. I am running as my normal user. The permissions of the installed binary look the same as yours. Where I start the game I saw some messages like: $ scavenger No /home/paul/.scavenger/!!! Setting one up... No /home/paul/.scavenger/levels.scl, setting one up... Trying to copy /usr/share/games/scavenger/levels.scl..copied. No /home/paul/.scavenger/scavrc, setting one up... Also BTW -- there is a more modern SDL-based version on the author's website. I don't see any ebuild but maybe you can compile it and see how it goes. Maybe /usr/games/bin/ is not on the path? How do I check it, I forgot :-/ -- Joseph
Re: [gentoo-user] xscavenger - game
On Fri, Jul 5, 2013 at 7:49 PM, Joseph wrote: > I installed "xscavenger" and it installed without any problems but I can > seems to find this game anywhere. > Yes, I'm in "games" group. > > From the command line: > /usr/games/bin/scavenger > -bash: /usr/games/bin/scavenger: Permission denied > > /usr/games/bin/scavenger > -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger Probably does not help you solve your problem, but I just tried here and it worked for me. I am running as my normal user. The permissions of the installed binary look the same as yours. Where I start the game I saw some messages like: $ scavenger No /home/paul/.scavenger/!!! Setting one up... No /home/paul/.scavenger/levels.scl, setting one up... Trying to copy /usr/share/games/scavenger/levels.scl..copied. No /home/paul/.scavenger/scavrc, setting one up... Also BTW -- there is a more modern SDL-based version on the author's website. I don't see any ebuild but maybe you can compile it and see how it goes.