jethro Posted June 18, 2006 Report Share Posted June 18, 2006 Hi everybody, When I insert an audio CD in my cdrom drive I can not access it. KsCD gives an error that I do not have the right privileges for /dev/cdrom0. This is what I see when I look in the /dev folder: [jethro@dhcppc2 dev]$ ll | grep cd lrwxrwxrwx 1 root root 3 jun 18 11:55 cdrom -> hdc lrwxrwxrwx 1 root root 3 jun 18 11:55 cdrom0 -> hdc drwxr-xr-x 2 root root 60 jun 18 11:55 cdroms/ lrwxrwxrwx 1 root root 3 jun 18 11:55 cdrw -> hdc brw-rw---- 1 jethro cdrom 22, 0 jun 18 11:55 hdc drwxr-xr-x 2 root root 60 jun 18 2006 pktcdvd/ lrwxrwxrwx 1 root root 5 jun 18 2006 ptycd -> pty/m crw-rw---- 1 jethro cdwriter 21, 0 jun 18 2006 sg0 crw-rw---- 1 jethro cdwriter 21, 1 jun 18 2006 sg1 brw-rw---- 1 jethro cdrom 11, 0 jun 18 2006 sr0 brw-rw---- 1 jethro cdrom 11, 1 jun 18 2006 sr1 lrwxrwxrwx 1 root root 5 jun 18 2006 ttycd -> pty/s Perhaps I should chown en chgrp cdrom0 to my user account instead of root? I am not sure if I can do this or if it is unsafe. Does anybody know how I can set the privileges right? Jethro Quote Link to comment Share on other sites More sharing options...
scarecrow Posted June 18, 2006 Report Share Posted June 18, 2006 Can you access the audioCd contents via the KDE vfs? ( audiocd:/ in the konqueror address bar). Your current user must belong to the optical devices' group ( named either "cdrom" or "optical" or probably a bit different in some systems ), and your fstab should allow user access to the device. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 19, 2006 Author Report Share Posted June 19, 2006 When I type "audiocd:/" in konqueror it starts searching google for it. Should the following things be in the group cdrom instead of in the group root? lrwxrwxrwx 1 root root 3 jun 18 11:55 cdrom -> hdc lrwxrwxrwx 1 root root 3 jun 18 11:55 cdrom0 -> hdc drwxr-xr-x 2 root root 60 jun 18 11:55 cdroms/ Quote Link to comment Share on other sites More sharing options...
scarecrow Posted June 19, 2006 Report Share Posted June 19, 2006 Mmm, maybe you are missing packages from "kdemultimedia"? Mine just shows the cd contents (incuding MP3, FLAC, cdda folders), while if I type it with no audioCD inserted I just get an error message. No, the above should be root/root, but your current user eg "jethro" should belong to the "cdrom" group. After inserting him there, logout of your desktop environment and then back in to apply the change. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 19, 2006 Author Report Share Posted June 19, 2006 I made myself a member of the "cdrom" group, but it did not change anything. I will look at the "kdemultimedia" package. Perhaps I forgot to reinstall a few KDE packages after a KDE upgrade. Alright, "audiocd:/" works now. But I still get the permission error with KsCD. Are there any other things I can do / check? Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted June 19, 2006 Report Share Posted June 19, 2006 Check your security level by running as root: # draksec Anything above "High" will cause permission problems and is unecessary for desktops. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 19, 2006 Author Report Share Posted June 19, 2006 It is set to "high", is it safe to lower it to "standard"? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 19, 2006 Report Share Posted June 19, 2006 I always have my desktops at standard, I would only use anything more for server installs. So, yes it would be safe for standard security. I've never had any probs, I found high too restrictive for my liking. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 20, 2006 Author Report Share Posted June 20, 2006 I changed it, but it does not make a difference. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted June 20, 2006 Report Share Posted June 20, 2006 What's the CD-ROM device in the kscd settings? Try not using the real device ( /dev/hdc or /dev/cdroms/cdrom0 ) but rather the KDE virtual one, say "system:/mnt/hdc" for Mandriva ( for other distros that follow strictly the OpenDesktop standards it should be "system:/media/hdc" instead ). Using a real mountpoint like /mnt/cdrom does not make sense, since audioCD's aren't really mountable. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 20, 2006 Author Report Share Posted June 20, 2006 When I go to "system:/media/hdc" I get some kind of permission error also. "system:/mnt/hdc" does not seem to exist. Here is my fstab: # This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/sda6 / ext3 defaults 1 1 /dev/sda8 /home ext3 defaults 1 2 none /proc proc defaults 0 0 /dev/sda1 /windows ntfs umask=0,defaults 0 0 /dev/sda7 swap swap defaults 0 0 /dev/hdc /mnt/cdrom2 auto pamconsole,exec,noauto,utf8,iocharset=utf8,managed 0 0 Perhaps there is something wrong in it? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 20, 2006 Report Share Posted June 20, 2006 This is my cdrom entry in my fstab: /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0 try matching yours to mine and see how you get on. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 26, 2006 Author Report Share Posted June 26, 2006 I tried it but it does not make a difference. When I run kscd as root I also cannot play audio cd's. How is the "cdrom player" set in your kscd settings? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted June 26, 2006 Report Share Posted June 26, 2006 In my system it is set as system:/media/hdc ...and it works just fine, but it's not Mandriva, but Arch Linux... so it may not work for you: Mandriva uses an archaic+heavily patched 2.6.12.X kernel, with a strange mix of automounting utilities, while Arch uses an almost vanilla 2.6.17 kernel, and just the common dbus/hal/pmount scheme for automounting (with ivman as optional)- so there cannot be any serious comparisons. Quote Link to comment Share on other sites More sharing options...
jethro Posted June 27, 2006 Author Report Share Posted June 27, 2006 It does not work for me unfortunatly :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.