You are not logged in.

#1 2009-01-27 16:58:55

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

[Solved] Unable to run certain games without setting suid bit

It's an interesting problem: I did a clean install of Arch (to use the new KDE 4.2) then installed vavoom-sdl from the AUR and eduke32 from the archlinuxfr repo then tried running them. The two immediately crash out, but if I set xhost+ on my terminal and run as root, they work. I tried setting the suid bit for testing, that works too, however, I immensely dislike running anything with elevated root privledge when I shouldn't have to. I tried tracing the errors but both just fail with "program aborted" and I get errors in the Xorg.conf.log about clients being rejected. Running latest kernel and nvidia drivers on x64 (I get the same errors on i686 btw). Never had a problem like this before and any help/suggestions would be greatly appreciated. More info can be provided if needed, just ask.

Last edited by Slammer64 (2009-02-04 20:13:20)


Somewhere, just out of sight, the Penguins are gathering!

Offline

#2 2009-01-28 17:26:26

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: [Solved] Unable to run certain games without setting suid bit

add yourself to the games group, and change group permission of the game to games.  Some games doesn't work without suid though!

Offline

#3 2009-01-28 19:25:44

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [Solved] Unable to run certain games without setting suid bit

I am a member of games already, but I'll try the suggestions on changing the games to "games". I just never had this problem before with Arch. Perhaps it has to due with pam or maybe the new xorg 1.5?

Last edited by Slammer64 (2009-01-28 19:31:29)


Somewhere, just out of sight, the Penguins are gathering!

Offline

#4 2009-01-28 21:21:00

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: [Solved] Unable to run certain games without setting suid bit

I think it's odd that suid is necessary to play a game. I myself maintain savage 2 game(http://aur.archlinux.org/packages/savag … 2/PKGBUILD and had to set suid in order to update to the newer version. If you install in home directory, you don't have to set suid, but /opt directory needs it. I would appreciate if you could share your experience with me. I tried changing group permission before but didn't work for me, since adding to a certain group does not give me permission to write to the dir, neither does the write permission. Did it work for you?

Last edited by ahcaliskan (2009-01-28 21:32:01)

Offline

#5 2009-01-28 23:18:09

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [Solved] Unable to run certain games without setting suid bit

I've never had to set the suid bit before, on previous Arch installs these games just "worked out of the box" But since Arch is a rolling distro, something's changed. I can run the programs as root or setting the suid bit, but other than that, I don't know, maybe it's timidity, as both programs use timidity for music. I tried changing timidity to root:audio, but no dice, same with adding the 2 games to the games group. It's got me puzzled, but maybe someone else will know either an explanation of why they won't work now, or a workaround. Any input is welcome.


Somewhere, just out of sight, the Penguins are gathering!

Offline

#6 2009-01-29 14:03:01

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: [Solved] Unable to run certain games without setting suid bit

Have you read this webpage about how to disable setuid?
http://midatl.radford.edu/docs/C/Enable … etuid.html

I think you're into something, since both x and /dev/dsp could be the reason why setuid is required.
http://webpages.mr.net/bobz/howto/Quake-HOWTO-6.html

Last edited by ahcaliskan (2009-01-29 14:14:03)

Offline

#7 2009-02-04 20:16:44

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [Solved] Unable to run certain games without setting suid bit

Well, after fighting with KDE4 from the Arch repos, I moved to KDE-Mod and no such problems. I wish I knew what was causing it, I think it's a permission problem with KDE. PSX wouldn't run, neither would eduke or vavoom, just got that program aborted message. KDE-Mod runs fine for now. Oh well.


Somewhere, just out of sight, the Penguins are gathering!

Offline

#8 2009-02-05 22:18:40

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: [Solved] Unable to run certain games without setting suid bit

An update, after the upload of the new kdebase-workspace-4.2.0-4 these programs are all working in vanilla Arch, Hoo-yaa!


Somewhere, just out of sight, the Penguins are gathering!

Offline

#9 2009-02-05 22:20:47

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: [Solved] Unable to run certain games without setting suid bit

I'm glad to hear that all works now!

Offline

Board footer

Powered by FluxBB