LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 11-09-2003, 09:29 PM   #1
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
Wolfenstein: no Sound as User


I'm using Slackware 9.1 and just installed the Linux binaries for Return to Castle Wolfenstein. When I launch the game as 'root' I get sound. When I launch it as a user I get NO sound. All sounds in XMMS and Xine work... why not when I run it as a user?

Thanks, olias
 
Old 11-09-2003, 09:37 PM   #2
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
*** more info ***

I just ran it from the Konsole and found this error...
Code:
------- sound initialization -------
/dev/dsp: Permission denied
Could not open /dev/dsp
------------------------------------
What do I do now?? Getting closer
 
Old 11-09-2003, 09:43 PM   #3
mondaypickle
Member
 
Registered: May 2003
Distribution: Slackware 9.1
Posts: 85

Rep: Reputation: 15
u can either chmod 777 /dev/dsp (possibly creating a security hole) or u can do this thing with groups. some one explained it before, try searching for sound permissions or something similar on these boards
 
Old 11-09-2003, 09:47 PM   #4
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
I had to do this as 'root' ...
Code:
chmod 666 /dev/dsp
How do things like this get screwed up?
 
Old 11-09-2003, 09:49 PM   #5
linuxbotx
Member
 
Registered: Oct 2003
Location: USA
Distribution: Fedora Core 4
Posts: 247

Rep: Reputation: 30
login as root
type chmod 660 /dev/dsp

log out from root
login as your user
play wolfenstein. Your sound should work

have fun
 
Old 11-09-2003, 09:51 PM   #6
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks mondaypickle... eek, a security hole!!! I seem to remember having a 'sound' group in Mandrake but nothing like this in Slack.
 
Old 11-09-2003, 09:53 PM   #7
linuxbotx
Member
 
Registered: Oct 2003
Location: USA
Distribution: Fedora Core 4
Posts: 247

Rep: Reputation: 30
The chmod 660 will get rid of the security hole. 666/777 is a little bit of leakage!
 
Old 11-09-2003, 09:55 PM   #8
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks linuxbotx but now I have more questions...

1) How do things like this get screwed up?
2) Where did the 'sound' group go in Slack?
3) What are these permissions like 777, 666 and 660?

Thanks again, olias
 
Old 11-09-2003, 10:33 PM   #9
linuxbotx
Member
 
Registered: Oct 2003
Location: USA
Distribution: Fedora Core 4
Posts: 247

Rep: Reputation: 30
1) Things like this happen based upon your distro. In your case, Slackware sets permissions to certin files so only certin users can read/write/execute the files. Sometimes you have to manually change some files. This is good for security.

2) I don't use slack, so I don't know. You may have to create your own group

3) Permissions tell Linux who has what kinds of access to the files. Read has a value of 4, write has a value of 2, and execute has value of 1. For example, a value of 660 would look like this: (660, the first 6 is for user, the second 6 is for group, and the last 0 is for other)

Read Write Execute
User [X] [X] [ ]
Group [X] [X] [ ]
Others [ ] [ ] [ ]

If you open up Konquor and right click on a file in any directory on your hard drive, you can see the permissions of the file. So a 777 would give everyone who uses the system full read write, and execute access to the file.
 
Old 11-10-2003, 04:41 PM   #10
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Wow linuxbotx, thanks for the great explanation on permissions. I set it to 660 rather than giving others access to the file.

Linux has renewed my interest in computers and I was so dog tired of Windows with all its holes, patches, pop-ups, viruses and spy-ware.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Sound Driver for Wolfenstein ET?? flamesrock Linux - Games 5 09-23-2006 10:51 AM
wolfenstein no sound AGilley007 Linux - Games 22 09-23-2006 10:50 AM
user sound is fine, Root sound just squeals Doug.Gentry Linux - Newbie 1 09-05-2004 03:27 PM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM
Return to Castle Wolfenstein and sound walterw Linux - General 4 08-08-2003 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration