Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making joystick available to normal users by default
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
Wandar
n00b
n00b


Joined: 11 Mar 2004
Posts: 23

PostPosted: Wed Jun 16, 2004 7:27 am    Post subject: Making joystick available to normal users by default Reply with quote

Hi.

As you know the joystick device is at
Code:
/dev/input/js0


However normal user is unable to use it, because the permissions are set to
Code:
crw-------


So, when I want to play, first I need to su root and change the permissions so that normal user can read the device. The problem is that the given permissions will naturally disappear when computer is shut down.

Is there a way to make those permissions permanent?
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Wed Jun 16, 2004 7:29 am    Post subject: Reply with quote

If you are using udev, there certainly is.
After installation, look into /etc/udev/permissions.d/* for guidance.
Back to top
View user's profile Send private message
Parasietje
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 194

PostPosted: Thu Jun 17, 2004 4:41 pm    Post subject: Reply with quote

If you use devfsd, look into /etc/devfsd.conf, the file is very easy to adjust. Just register the device with mod 660, and register it as group 'games'.
Good luck
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