Unable to play audio CD on /dev/hdd (cdrom)
![](https://seccdn.libravatar.org/avatar/11f5469669bc944a0240898eb2c52617.jpg?s=120&d=mm&r=g)
Upgraded 9.2 to 9.3 (AMD64) and I can no longer play audio CDs
in /dev/hdd (CDROM) due to file permissions. The file perms are
automatically to the current user /dev/hdc (DVD-RW) though. In 9.2 I
could play audio CDs on either unit.
As root, I have manually changed the owner on /dev/hdd but on reboot it
is set back to root.
Is there any configuration whereby any user logged into thru console
gets read permission on both devices?
$ ll /dev/hd[dc]
brw------- 1 arunk disk 22, 0 May 31 07:16 /dev/hdc
brw-rw---- 1 root disk 22, 64 May 31 07:16 /dev/hdd
$ ll /dev/cdrom /dev/dvdramll /dev/cdrom /dev/dvdram
lrwxrwxrwx 1 root root 3 Aug 11 16:43 /dev/cdrom -> hdd
lrwxrwxrwx 1 root root 3 Aug 11 16:43 /dev/dvdram -> hdc
<entries from fstab>
/dev/cdrom /media/cdrom subfs
noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,io
charset=utf8 0 0
/dev/dvdram /media/dvdram subfs
noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,io
charset=utf8 0 0
TIA,
--
Arun Khan
![](https://seccdn.libravatar.org/avatar/df0fb2b8b7d4d50f50b5b4bfcc56ac38.jpg?s=120&d=mm&r=g)
On Thursday 11 August 2005 02:09 pm, Arun K. Khan wrote:
Upgraded 9.2 to 9.3 (AMD64) and I can no longer play audio CDs in /dev/hdd (CDROM) due to file permissions. The file perms are automatically to the current user /dev/hdc (DVD-RW) though. In 9.2 I could play audio CDs on either unit.
As root, I have manually changed the owner on /dev/hdd but on reboot it is set back to root.
Look in /etc/resmgr.conf
![](https://seccdn.libravatar.org/avatar/11f5469669bc944a0240898eb2c52617.jpg?s=120&d=mm&r=g)
On Thu, 2005-08-11 at 15:07 +0000, Silviu Marin-Caea wrote:
Look in /etc/resmgr.conf
OK, I checked above file and it does have /dev/cdrom and /dev/dvdram
entries. These in turn are symlinked to /dev/hdd and /dev/hdc resp.
Also verified that resmgrd is running and is configured to run in levels
2,3, and 5.
I am still getting "Permission denied" message for audio CDs
in /dev/hdd.
What else could be wrong?
TIA
--
Arun Khan
![](https://seccdn.libravatar.org/avatar/bbb12e030d77c2c8d1b3ad3426767d6d.jpg?s=120&d=mm&r=g)
Hi, Don't you just need to set the entry in your /etc/fstab to: /dev/cdrom /media/cdrom iso9660 ro,user,noauto If you then type 'mount /media/cdrom' as a normal user you should see the audio disk mounted under /media/cdrom, and off you go with your favourite CD player..... This works for me. Cheers, Jon. Arun K. Khan wrote:
Upgraded 9.2 to 9.3 (AMD64) and I can no longer play audio CDs in /dev/hdd (CDROM) due to file permissions. The file perms are automatically to the current user /dev/hdc (DVD-RW) though. In 9.2 I could play audio CDs on either unit.
As root, I have manually changed the owner on /dev/hdd but on reboot it is set back to root.
Is there any configuration whereby any user logged into thru console gets read permission on both devices?
$ ll /dev/hd[dc] brw------- 1 arunk disk 22, 0 May 31 07:16 /dev/hdc brw-rw---- 1 root disk 22, 64 May 31 07:16 /dev/hdd
$ ll /dev/cdrom /dev/dvdramll /dev/cdrom /dev/dvdram lrwxrwxrwx 1 root root 3 Aug 11 16:43 /dev/cdrom -> hdd lrwxrwxrwx 1 root root 3 Aug 11 16:43 /dev/dvdram -> hdc
<entries from fstab> /dev/cdrom /media/cdrom subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,io charset=utf8 0 0 /dev/dvdram /media/dvdram subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,io charset=utf8 0 0
TIA,
![](https://seccdn.libravatar.org/avatar/72ee3b9e0735cf98a1e936a90fc087ed.jpg?s=120&d=mm&r=g)
On Thursday 11 August 2005 22:52, Jonathan Brooks wrote:
Hi,
Don't you just need to set the entry in your /etc/fstab to: /dev/cdrom /media/cdrom iso9660 ro,user,noauto
If you then type 'mount /media/cdrom' as a normal user you should see the audio disk mounted under /media/cdrom, and off you go with your favourite CD player.....
This works for me.
No it doesn't. You can't mount audio CDs The problem is that console logins don't use resmgr. The solution is to do one of four things 1. Edit /etc/pam.d/login and add the line session required pam_resmgr.so This will make it automatic, but note that if you get a fatal error in your resmgr daemon, you will no longer be able to log in, not even as root 2. su to root and activate resmgr manually, by running resmgr login <username> tty0 then exit back to your user account. This will have to be done anew on every login 3. Edit /etc/logindevperm and make sure your cdrom device is listed in there. This should work so long as you don't use resmgr aware applications to play CDs 4. Log in graphically through kdm. This is the normal way to do it, and will make everything work automatically
![](https://seccdn.libravatar.org/avatar/11f5469669bc944a0240898eb2c52617.jpg?s=120&d=mm&r=g)
On Thu, 2005-08-11 at 23:06 +0200, Anders Johansson wrote:
3. Edit /etc/logindevperm and make sure your cdrom device is listed in there. This should work so long as you don't use resmgr aware applications to play CDs
4. Log in graphically through kdm.
This is the normal way to do it, and will make everything work automatically
Anders, thanks for the pointers. In 9.2, the graphical login was the
default and that explains why I could play audio CDs in both
devices /dev/hd[cd]. In the 9.3 upgrade process, I had to set the
default to runlevel 3 since I was experiencing display problems with the
stock 'nv' driver (GeForce FX 5600 with DVI/CRT ports) on the CRT port -
a subject for another thread.
I will go with your option 3.
--
Arun Khan
![](https://seccdn.libravatar.org/avatar/ef3b20e499e909bd7574513744103ce3.jpg?s=120&d=mm&r=g)
On Fri, 2005-08-12 at 08:06, Arun K. Khan wrote:
On Thu, 2005-08-11 at 23:06 +0200, Anders Johansson wrote:
3. Edit /etc/logindevperm and make sure your cdrom device is listed in there. This should work so long as you don't use resmgr aware applications to play CDs
4. Log in graphically through kdm.
I would also alter fstab in the two lines you posted its either user or users. in 9.1 its users. /dev/cdrom /media/cdrom auto ro,noauto,users,exec,iocharset=utf8 0 0 /dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,users,nosuid,nodev,exec,iocharset=utf8 0 0 -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
![](https://seccdn.libravatar.org/avatar/11f5469669bc944a0240898eb2c52617.jpg?s=120&d=mm&r=g)
On Fri, 2005-08-12 at 17:07 -0700, Carl William Spitzer IV wrote:
I would also alter fstab in the two lines you posted its either user or users. in 9.1 its users.
/dev/cdrom /media/cdrom auto ro,noauto,users,exec,iocharset=utf8 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,users,nosuid,nodev,exec,iocharset=utf8 0 0
Good eye! A quick look thru man mount shows both user and users as
valid options, essentially allowing non root users to mount the resp.
device.
--
Arun Khan
![](https://seccdn.libravatar.org/avatar/ef3b20e499e909bd7574513744103ce3.jpg?s=120&d=mm&r=g)
On Sat, 2005-08-13 at 09:56 +0530, Arun K. Khan wrote:
On Fri, 2005-08-12 at 17:07 -0700, Carl William Spitzer IV wrote:
I would also alter fstab in the two lines you posted its either user or users. in 9.1 its users.
/dev/cdrom /media/cdrom auto ro,noauto,users,exec,iocharset=utf8 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,users,nosuid,nodev,exec,iocharset=utf8 0 0
Good eye! A quick look thru man mount shows both user and users as valid options, essentially allowing non root users to mount the resp. device.
Your welcome. In realestate its location location location. In C its pointers pointers pointers. In linux its permissions permissions permissions. Once in a while a blown install just for fun. My local group says you have to blow 8 installs before your humble enough to start learning. I was inpatient and did that in a weekend before I decided to stop being cheap and buy 8.2. *nix is in the details and with thousands of programs you really need a busy list like this to keep up with issues. -- ___ _ _ _ ____ _ _ _ | | | | [__ | | | |___ |_|_| ___] | \/
participants (5)
-
Anders Johansson
-
Arun K. Khan
-
Carl William Spitzer IV
-
Jonathan Brooks
-
Silviu Marin-Caea