Package: cdrecord Version: 4:2.01+01a01-2 Severity: normal - I'm member of 'cdrom' group. - CD writer device is /dev/hdc: | $ ls -l /dev/hdc | brw-rw---- 1 root cdrom 22, 0 Nov 8 15:45 /dev/hdc (It is driven by ide_cd module of vanilla 2.6.10 kernel.) - All binaries are setuid 'root': | $ /bin/ls -l /usr/bin/cdrecord* | -rwsr-xr-- 1 root cdrom 133 Jan 9 17:55 /usr/bin/cdrecord | -rwsr-xr-- 1 root cdrom 348556 Jan 9 17:55 /usr/bin/cdrecord.mmap | -rwsr-xr-- 1 root cdrom 351404 Jan 9 17:55 /usr/bin/cdrecord.shm
So there may not be any permission problem. But if I start a write operation as normal user, I get this: | $ cdrecord -dummy -v -tao dev=/dev/hdc /tmp/image.iso | Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 | Jörg Schilling | NOTE: this version of cdrecord is an inofficial (modified) release of | cdrecord | and thus may have bugs that are not present in the original version. | Please send bug reports and support requests to <[EMAIL PROTECTED]>. | The original author should not be bothered with problems of this version. | | cdrecord: Warning: Running on Linux-2.6.10 | cdrecord: There are unsettled issues with Linux-2.5 and newer. | cdrecord: If you have unexpected problems, please try Linux-2.4 or | Solaris. | TOC Type: 1 = CD-ROM | scsidev: '/dev/hdc' | devname: '/dev/hdc' | scsibus: -2 target: -2 lun: -2 | Warning: Open by 'devname' is unintentional and not supported. | Linux sg driver version: 3.5.27 | Using libscg version 'schily-0.8'. | SCSI buffer size: 64512 | cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer. | $ If I start the same session as root it works well. (The very same output but does not stop after "SCSI buffer size:" message.) However the most interesting fact is that if I start cdrecord as normal user but with 'strace' it WORKS. (Even with funny warnings.) | $ strace -o /tmp/trace cdrecord -dummy -v -tao dev=/dev/hdc /tmp/image.iso | Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling | NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord | and thus may have bugs that are not present in the original version. | Please send bug reports and support requests to <[EMAIL PROTECTED]>. | The original author should not be bothered with problems of this version. | | cdrecord: Warning: Running on Linux-2.6.10 | cdrecord: There are unsettled issues with Linux-2.5 and newer. | cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. | TOC Type: 1 = CD-ROM | cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2). | cdrecord: WARNING: This causes a high risk for buffer underruns. | cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler | cdrecord: Permission denied. WARNING: Cannot set priority using setpriority(). | cdrecord: WARNING: This causes a high risk for buffer underruns. | scsidev: '/dev/hdc' | devname: '/dev/hdc' | scsibus: -2 target: -2 lun: -2 | Warning: Open by 'devname' is unintentional and not supported. | Linux sg driver version: 3.5.27 | Using libscg version 'schily-0.8'. | SCSI buffer size: 64512 | atapi: 1 | Device type : Removable CD-ROM | Version : 0 | Response Format: 1 | Vendor_info : 'HL-DT-ST' | Identifikation : 'RW/DVD GCC-4480B' | Revision : '1.00' | Device seems to be: Generic mmc2 DVD-ROM. | Current: 0x0009 | Profile: 0x000A | Profile: 0x0009 (current) | Profile: 0x0008 | Profile: 0x0002 (current) | Profile: 0x0010 | Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr). | Driver flags : MMC-2 SWABAUDIO BURNFREE | Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R | Drive buf size : 1591744 = 1554 KB | FIFO size : 4194304 = 4096 KB | Track 01: data 693 MB | Total size: 796 MB (78:55.69) = 355177 sectors | Lout start: 797 MB (78:57/52) = 355177 sectors | Current Secsize: 2048 | ATIP info from disk: | Indicated writing power: 6 | Is not unrestricted | Is not erasable | Disk sub type: Medium Type B, low Beta category (B-) (4) | ATIP start of lead in: -11625 (97:27/00) | ATIP start of lead out: 359849 (79:59/74) | Disk type: unknown dye (old id code) | Manuf. index: 81 | Manufacturer: ILLEGAL OLD CODE: Old Ritek Co.??? | Trying to clear drive status. | cdrecord: Drive needs to reload the media to return to proper status. | [...] I thought you should know about this. Gabor -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (101, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.10 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages cdrecord depends on: ii debconf 1.4.30.11 Debian configuration management sy ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii makedev 2.3.1-75 Creates device files in /dev -- debconf information: * cdrecord/SUID_bit: true cdrecord/MAKEDEV: true cdrecord/MAKEDEVNEW: true cdrecord/do_it_yourself: