Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Suid-ing arts.... permission problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Sun Feb 22, 2004 12:11 am    Post subject: [solved] Suid-ing arts.... permission problems Reply with quote

Hya

I've recently tried to set permissions of artsd and artswrapper to suid root. The reason for this is that certain games have a nasty latency that I can't get out without either bypassing artsd and run directly on ALSA (and therefore muting all other apps), or by shutting down arts altogether (making things even worse - ALSA doesn't support hardware mixing on intel8x0?)

Anywayz, when I set the perms to suid root, I restarted it, and then I got a nasty error, saying that /tmp/mcop-root was inaccesible (I'm sorry that I haven't written it down, but I got mad on the thing for screwing up my artsrc in my KDE-profile as well).

That directory /tmp/mcop-root, to whom should it be accesible to: root or myself, or both?

Greetz
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/


Last edited by lunarg on Fri Feb 27, 2004 4:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
kojiro
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 245
Location: Rochester

PostPosted: Sun Feb 22, 2004 12:43 am    Post subject: Re: Suid-ing arts.... permission problems Reply with quote

lunarg wrote:
Hya

I've recently tried to set permissions of artsd and artswrapper to suid root. The reason for this is that certain games have a nasty latency that I can't get out without either bypassing artsd and run directly on ALSA (and therefore muting all other apps), or by shutting down arts altogether (making things even worse - ALSA doesn't support hardware mixing on intel8x0?)

Anywayz, when I set the perms to suid root, I restarted it, and then I got a nasty error, saying that /tmp/mcop-root was inaccesible (I'm sorry that I haven't written it down, but I got mad on the thing for screwing up my artsrc in my KDE-profile as well).

That directory /tmp/mcop-root, to whom should it be accesible to: root or myself, or both?

Greetz


Disclaimer: I could be way off here, so be responsible for your own actions.

However, I would probably
Code:
rm -rf /tmp/* && chmod -r 666 /tmp


I mean, the tmp directory is *supposed* to be temporary, anyway.
_________________
>>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference? :P
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Sun Feb 22, 2004 9:25 pm    Post subject: Reply with quote

Okay, I retried to suid'ing artsd, and I also set the permissions of /tmp/mcop-root to world rwx + I made my user (lunarg) owner of the dir because artsd was complaining about that too:
Code:
drwxrwxrwx    3 lunarg   users         112 Feb 12 22:12 mcop-root


When I start it now, I get the strangest error message.... 8O
Quote:
/tmp/mcop-root is accessible owned by user


What does that one mean? Artsd won't start up.....
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
kojiro
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 245
Location: Rochester

PostPosted: Sun Feb 22, 2004 10:48 pm    Post subject: Reply with quote

Why don't you just delete the whole directory, and then restart the daemon?
_________________
>>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference? :P
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Sun Feb 22, 2004 10:57 pm    Post subject: Reply with quote

Removed the dir /tmp/mcop-root.

It gets recreated with these permissions:
Code:
drwx------    2 root     users          48 Feb 22 23:54 mcop-root


And then I get the error again as I started with:
Quote:
/tmp/mcop-root is not owned by user

_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Fri Feb 27, 2004 4:30 pm    Post subject: Reply with quote

Oops :oops:

After visiting arts-project.org, I found out that it's not artsd that needs to be suid root, but artswrapper....

Sorry guys.... It seems to work now.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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