LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2004, 08:49 AM   #1
zensufi
Member
 
Registered: Jul 2004
Posts: 63

Rep: Reputation: 15
Question CDs Only Play Under Root


I'm setting up my first Linux distro (Slackware 9.1) and am quickly being surprised by how obvious things are often NOT (I taught myself emacs and then proudly modified the lilo.conf file to decrease the time spent on the lilo screen during bootup - turns out lilo doesn't read the lilo.conf file during bootup - you have to reinstall lilo! - quite obvious in retrospect).

Anyway, my problem:

When I try to play CDs with the GNOME CD player, I get a message (from within the program) that there is a disk error. However, when I log in under root, I am able to play the CDs (the CD player claims it is playing the CD and correctly tells me the number of minutes on each track - I don't have sound yet, but I'm saving that problem for when I get the CD player working under my user name). Even though you cannot mount a music CD, I edited the fstab file so that under CD it set says user instead of owner. This did not help. Is there some sort of permissions on the CD drive I don't know about?

Thanks,

Brian
 
Old 07-13-2004, 09:09 AM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
have you checked the permissions on /dev/cdrom and the device it points to?

do "ls -l /dev/cdrom" to see where /dev/cdrom points

read this to learn about permissions:
https://www.redhat.com/docs/manuals/...ownership.html

 
Old 07-13-2004, 10:02 AM   #3
zensufi
Member
 
Registered: Jul 2004
Posts: 63

Original Poster
Rep: Reputation: 15
Checked Permissions

I checked. The complete text is as follows:

lrwxrwxrwx 1 root root 8 Jul 12 15:43 /dev/cdrom -> /dev/hdc

So, everyone has permission, and /dev/cdrom points to /dev/hdc as it should!\

Hmmm... Other ideas?

Brian
 
Old 07-13-2004, 10:33 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I've never got the gnome cd player to work. Totem works. Have you got Totem?
 
Old 07-13-2004, 10:50 AM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
did you check the permissions on /dev/hdc?

"ls -l /dev/hdc"
 
Old 07-13-2004, 11:00 AM   #6
zensufi
Member
 
Registered: Jul 2004
Posts: 63

Original Poster
Rep: Reputation: 15
Permissions to /dev/hdc

I checked permissions to /dev/hdc:

brw-rw---- 1 root disk 22, 0 Jun 9 2002 /dev/hdc

Ah hah!

I changed the permissions:

chmod 666 /dev/hdc

and it works!

Thanks for your help!

Brian
 
Old 07-13-2004, 11:06 AM   #7
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
welcome
 
Old 07-27-2004, 08:50 AM   #8
blufire
Member
 
Registered: Jul 2004
Location: Japan
Distribution: Fedora
Posts: 148

Rep: Reputation: 16
I have a similar problem kinda. I am trying to see and read data files and mpeg files off of my cd-rom. I dont have any problems with playing music or dvds to play mussic i installed xmms and it works fine to play dvds i used apt-get to get mplayer 9 and it works great with dvds my cd is as scd0 and i checked all the permisions and across the board for the users exept the root it says rw- i used the chmod 666/dev/scd0 to change permisions is there anything else i just want to read my data cd-roms i have written on my old windows xp machine and some mpeg video files i downloaded and put on cd-rom i cant get mplayer to play them becuase nothing is showing up on the cdrom mnt folder my distro is red hat 9 (shrike) i am a newbie and working hard to get knowledge. please help me
 
Old 07-27-2004, 09:24 AM   #9
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
First of all you should start a new thread and/or search. I will go ahead and give a go at this...you are mounting the cdroms in order to see the data, right? That is the only thing that I can think of that would be getting in your way. You never have to mount music/dvds.

Oh and by the way to the original poster if you were to add your user to the group data, then you wouldn't have to change the hdc permissions to world readable.
 
Old 07-27-2004, 10:40 AM   #10
blufire
Member
 
Registered: Jul 2004
Location: Japan
Distribution: Fedora
Posts: 148

Rep: Reputation: 16
sweet that did it i had to mount it with your leading i put this in the terminal $ mount /dev/cdrom
then after that in my x-windows in the /mnt/cdrom directory all my files showed up
thankyou again
 
Old 07-27-2004, 10:46 AM   #11
z3z1nh0
LQ Newbie
 
Registered: Jul 2004
Location: Guaraciaba do Norte - CE - Brazil
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
Try it

# chmod 777 /mnt/cdrom
# chmod 666 /dev/hdc

after open the file etc/fstab and where you find the word "owner" you delete and put "user".

it worked out with me!
 
Old 07-27-2004, 12:06 PM   #12
blufire
Member
 
Registered: Jul 2004
Location: Japan
Distribution: Fedora
Posts: 148

Rep: Reputation: 16
ok now next thing on my list is this recompile mplayer --disable-detecting-cpu for optimal performance how would i do that and is it really necessary ??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can play cds chrismiceli Linux - General 2 08-04-2005 04:47 AM
I can only play music cds as root r3dhatter Linux - Newbie 5 12-30-2004 02:50 PM
Can not play audio cds as user (just as root) hraposo Slackware 4 08-06-2004 02:20 PM
I cant play cds justinbm Red Hat 2 10-15-2003 10:09 AM
Can't play cds helloyo Linux - Software 18 10-14-2003 10:32 AM


All times are GMT -5. The time now is 12:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration