Jump to content

Permissions to cdrom


jethro
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...