LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission Probelms......Please read. (https://www.linuxquestions.org/questions/linux-newbie-8/permission-probelms-please-read-149723/)

nyhm 02-23-2004 06:31 PM

Permission Probelms......Please read.
 
Im still very new to linux (slackware 9.1) and have been using it for about almost a week now.

One of the main things I do on my machine is play games. My big problem is I can't play these games with out having to temporarily log on as root. If I dont do this it causes a lot of problems with my games such as not saving my keyboard layout, not saving my games, and the most recent: not being able to get any sound because of permission denies to /dev/dsp.

Is there anyway I can work around these permission problems? Or am I just going to have to SU everytime I want to play a game?

Thanks in advance!

Nis 02-23-2004 06:39 PM

Alright, first you need to add yourself to the games group. If you're using Dropline using users-admin makes this easy. Otherwise, search around here for CLI commands to do that. Next, you'll need to change the games' folders to group 'games' and give that group write access.
Code:

chgrp games /usr/games/ut2003/ -R
chmod g+w /usr/games/ut2003/ -R

The second command you might want to do to only the files you need to in the games' folders. I put the above down for the sake of length.
Next, you'll need to change the permissions of /dev/dsp, which is most likely a link to /dev/dsp0.
Code:

chmod 666 /dev/dsp0
Now you should be able to save games and configurations, and get sound. If only all games on Linux just stored configurations in $HOME. sigh

nyhm 02-23-2004 07:29 PM

Thank you very much, I think this will do the trick :)


All times are GMT -5. The time now is 04:22 AM.