Re: lost access to cdrom

2001-01-29 Thread serge delorme
Le dimanche 28 jan. 2001 à 11:23:33 +0100, Carel Fellinger a écrit:
 On Sun, Jan 28, 2001 at 04:46:14PM -0500, Vinod Kurup wrote:
  On Sun, Jan 28, 2001 at 03:47:59PM -0500, serge delorme wrote:
   
   As root it's ok but as user I can't access the drive even if:
   
   [EMAIL PROTECTED]:~$ ll /dev/scd0
   brw-rw2 root cdrom 11,   0 jui  5  2000 /dev/scd0
   
   [EMAIL PROTECTED]:~$ ll /dev/cdrom
   lrwxrwxrwx1 root root9 jan 28 14:04 /dev/cdrom - 
   /dev/scd0
   
   [EMAIL PROTECTED]:~$ groups
   sdelorme adm disk dialout cdrom floppy audio dip
 
 looks good. Must have to do with the mount command I guess.
 What's in your /etc/fstab?  Or aren't you refering to mounting,
 but are you talking of writing to the beast with cdrecord or reading
 with cdparanoia or likewise programs that don't use /dev/scd* but
 instead use /dev/sg*?  In that case check that the relevant generic
 scsi device (I think for you /dev/sg0) has th eproper group and
 protection set.

CD-burning packages are not installed yet, I was just testing the drive
after recompiling the kernel.
As a user I could mount the drive but could not read it with a simple ls
command... I would get a permission denied reply. 
BUT this morning without having changed anything it works!

I can read a data-cd and play a music-cd, but I don't understand why I can
now and not yesterday. Is there something in the start-up scripts of cron
that could do it? Thats the only stuff that ran since yesterday...

Anyway now I can install the burning stuff and start messing around.

  Try changing /dev/cdrom to be in the cdrom group.
  
  # chown root.cdrom /dev/cdrom
 
 you normally can't change the group of a link, it has no meaning.
 
 -- 
 groetjes, carel
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 

-- 
Serge Delorme   [EMAIL PROTECTED]
Un autre utilisateur GNU/DEBIAN



Re: lost access to cdrom

2001-01-29 Thread David Wright
Quoting serge delorme ([EMAIL PROTECTED]):

 CD-burning packages are not installed yet, I was just testing the drive
 after recompiling the kernel.
 As a user I could mount the drive but could not read it with a simple ls
 command... I would get a permission denied reply. 
 BUT this morning without having changed anything it works!
 
 I can read a data-cd and play a music-cd, but I don't understand why I can
 now and not yesterday. Is there something in the start-up scripts of cron
 that could do it? Thats the only stuff that ran since yesterday...

Usually this is because you
 . try it and fail with permission denied
 . login as root and add yourself to the group
 . try it again (perhaps even recalling the old command) and fail with
   permission denied
 . logout or reboot
 . try it and it works

You have to login *after* adding yourself to the group.

[I did notice that you posted [EMAIL PROTECTED]:~$ groups
sdelorme adm disk dialout cdrom floppy audio dip
but I don't know whether you pasted that from a different
session/xterm/whatever.]

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



lost access to cdrom

2001-01-28 Thread serge delorme
I changed my cdrom drive for a cd-rw, recompiled the kernel
for scsi-emulation, linked the new device with /dev/cdrom.

At boot-up:

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: SONY  Model: CD-RW  CRX160ERev: 1.0e
  Type:   CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12

Mounting the drive:

/dev/scd0 on /cdrom type iso9660 (ro,noexec,nosuid,nodev,user=sdelorme)

As root it's ok but as user I can't access the drive even if:

[EMAIL PROTECTED]:~$ ll /dev/scd0
brw-rw2 root cdrom 11,   0 jui  5  2000 /dev/scd0

[EMAIL PROTECTED]:~$ ll /dev/cdrom
lrwxrwxrwx1 root root9 jan 28 14:04 /dev/cdrom - /dev/scd0

[EMAIL PROTECTED]:~$ groups
sdelorme adm disk dialout cdrom floppy audio dip

I'm lost.

 
-- 
Serge Delorme   [EMAIL PROTECTED]
Un autre utilisateur GNU/DEBIAN



Re: lost access to cdrom

2001-01-28 Thread Vinod Kurup
On Sun, Jan 28, 2001 at 03:47:59PM -0500, serge delorme wrote:
 
 As root it's ok but as user I can't access the drive even if:
 
 [EMAIL PROTECTED]:~$ ll /dev/scd0
 brw-rw2 root cdrom 11,   0 jui  5  2000 /dev/scd0
 
 [EMAIL PROTECTED]:~$ ll /dev/cdrom
 lrwxrwxrwx1 root root9 jan 28 14:04 /dev/cdrom - 
 /dev/scd0
 
 [EMAIL PROTECTED]:~$ groups
 sdelorme adm disk dialout cdrom floppy audio dip
 

Try changing /dev/cdrom to be in the cdrom group.

# chown root.cdrom /dev/cdrom


Vinod
 
-- 
_
Vinod Kurup, MD
email: [EMAIL PROTECTED]
phone: 617.277.2012
cell:  617.359.5990
http://www.medicalrecords.com



Re: lost access to cdrom

2001-01-28 Thread Carel Fellinger
On Sun, Jan 28, 2001 at 04:46:14PM -0500, Vinod Kurup wrote:
 On Sun, Jan 28, 2001 at 03:47:59PM -0500, serge delorme wrote:
  
  As root it's ok but as user I can't access the drive even if:
  
  [EMAIL PROTECTED]:~$ ll /dev/scd0
  brw-rw2 root cdrom 11,   0 jui  5  2000 /dev/scd0
  
  [EMAIL PROTECTED]:~$ ll /dev/cdrom
  lrwxrwxrwx1 root root9 jan 28 14:04 /dev/cdrom - 
  /dev/scd0
  
  [EMAIL PROTECTED]:~$ groups
  sdelorme adm disk dialout cdrom floppy audio dip

looks good. Must have to do with the mount command I guess.
What's in your /etc/fstab?  Or aren't you refering to mounting,
but are you talking of writing to the beast with cdrecord or reading
with cdparanoia or likewise programs that don't use /dev/scd* but
instead use /dev/sg*?  In that case check that the relevant generic
scsi device (I think for you /dev/sg0) has th eproper group and
protection set.

 Try changing /dev/cdrom to be in the cdrom group.
 
 # chown root.cdrom /dev/cdrom

you normally can't change the group of a link, it has no meaning.

-- 
groetjes, carel



Re: lost access to cdrom

2001-01-28 Thread Vinod Kurup
On Sun, Jan 28, 2001 at 11:23:33PM +0100, Carel Fellinger wrote:
 On Sun, Jan 28, 2001 at 04:46:14PM -0500, Vinod Kurup wrote:
 
  Try changing /dev/cdrom to be in the cdrom group.
  
  # chown root.cdrom /dev/cdrom
 
 you normally can't change the group of a link, it has no meaning.
 

Huh, I didn't know that - thanks. Sorry for the bad advice!


-- 
_
Vinod Kurup, MD
email: [EMAIL PROTECTED]
phone: 617.277.2012
cell:  617.359.5990
http://www.medicalrecords.com