[gentoo-user] cdrecord says permission denied

2007-09-11 Thread Renat Golubchyk
Hi folks!

For years I've been using cdrecord as a non-root user and without suid
bit set. Now it doesn't work any more. Here is the error message and
some other info:


$ cdrecord -eject -v -driveropts=burnproof -data dev=/dev/cdrw
bigdisk/soft/operating_systems/ophcrack-livecd-1.2.2.iso 
cdrecord: No write mode specified.
cdrecord: Asuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive
dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright
(C) 1995-2007 Jörg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK
limits.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/cdrw'
devname: '/dev/cdrw'
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.9'.
Driveropts: 'burnproof'
SCSI buffer size: 64512
atapi: 1
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   : 
Vendor_info: 'QSI '
Identifikation : 'CDRW/DVD SBW-242'
Revision   : 'UX08'
Device seems to be: Generic mmc2 DVD-ROM.
Current: CD-RW
Profile: DVD-ROM 
Profile: CD-ROM 
Profile: CD-R 
Profile: CD-RW (current)
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P
RAW/R96R
Drive buf size : 1959936 = 1914 KB
FIFO size  : 4194304 = 4096 KB
Track 01: data   455 MB
Total size:  522 MB (51:47.76) = 233082 sectors
Lout start:  523 MB (51:49/57) = 233082 sectors
cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl.
cdrecord: Operation not permitted. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you
are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

$ ll /dev/cdr*
lrwxrwxrwx 1 root root 3 2007-09-11 16:21 /dev/cdrom - hdc
lrwxrwxrwx 1 root root 3 2007-09-11 16:21 /dev/cdrw - hdc

$ ll /dev/hdc 
brw-rw 1 root cdrom 22, 0 2007-09-11 16:21 /dev/hdc

$ groups 
adm wheel cron audio cdrom video cdrw usb users locate portage plugdev


I can't find anything, neither in the ChangeLogs (ebuild or cdrtools)
nor on the forums/bugzilla. Everybody seems to like the idea of burning
CDs with root permissions. Can anybody point me in the right direction?


Thanks,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
  (Einstein)


signature.asc
Description: PGP signature


Re: [gentoo-user] cdrecord says permission denied

2007-09-11 Thread Rafael Barrera Oro
did you try adding yourself to the cdrom group?

2007/9/11, Renat Golubchyk [EMAIL PROTECTED]:

 Hi folks!

 For years I've been using cdrecord as a non-root user and without suid
 bit set. Now it doesn't work any more. Here is the error message and
 some other info:

 
 $ cdrecord -eject -v -driveropts=burnproof -data dev=/dev/cdrw
 bigdisk/soft/operating_systems/ophcrack-livecd-1.2.2.iso
 cdrecord: No write mode specified.
 cdrecord: Asuming -sao mode.
 cdrecord: If your drive does not accept -sao, try -tao.
 cdrecord: Future versions of cdrecord may have different drive
 dependent defaults.
 Cdrecord-ProDVD-ProBD-Clone 2.01.01a34 (i686-pc-linux-gnu) Copyright
 (C) 1995-2007 Jörg Schilling
 TOC Type: 1 = CD-ROM
 cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK
 limits.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/cdrw'
 devname: '/dev/cdrw'
 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.9'.
 Driveropts: 'burnproof'
 SCSI buffer size: 64512
 atapi: 1
 Device type: Removable CD-ROM
 Version: 0
 Response Format: 2
 Capabilities   :
 Vendor_info: 'QSI '
 Identifikation : 'CDRW/DVD SBW-242'
 Revision   : 'UX08'
 Device seems to be: Generic mmc2 DVD-ROM.
 Current: CD-RW
 Profile: DVD-ROM
 Profile: CD-ROM
 Profile: CD-R
 Profile: CD-RW (current)
 Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
 Driver flags   : MMC-3 SWABAUDIO BURNFREE
 Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P
 RAW/R96R
 Drive buf size : 1959936 = 1914 KB
 FIFO size  : 4194304 = 4096 KB
 Track 01: data   455 MB
 Total size:  522 MB (51:47.76) = 233082 sectors
 Lout start:  523 MB (51:49/57) = 233082 sectors
 cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl.
 cdrecord: Operation not permitted. Cannot open or use SCSI driver.
 cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you
 are root.
 cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

 $ ll /dev/cdr*
 lrwxrwxrwx 1 root root 3 2007-09-11 16:21 /dev/cdrom - hdc
 lrwxrwxrwx 1 root root 3 2007-09-11 16:21 /dev/cdrw - hdc

 $ ll /dev/hdc
 brw-rw 1 root cdrom 22, 0 2007-09-11 16:21 /dev/hdc

 $ groups
 adm wheel cron audio cdrom video cdrw usb users locate portage plugdev
 

 I can't find anything, neither in the ChangeLogs (ebuild or cdrtools)
 nor on the forums/bugzilla. Everybody seems to like the idea of burning
 CDs with root permissions. Can anybody point me in the right direction?


 Thanks,
 Renat

 --
 Probleme kann man niemals mit derselben Denkweise loesen,
 durch die sie entstanden sind.
   (Einstein)




Re: [gentoo-user] cdrecord says permission denied

2007-09-11 Thread Renat Golubchyk
On Tue, 11 Sep 2007 15:04:04 -0300 Rafael Barrera Oro
[EMAIL PROTECTED] wrote:
 did you try adding yourself to the cdrom group?

I *am* in the cdrom group, as I have already wrote.

  $ groups
  adm wheel cron audio cdrom video cdrw usb users locate portage plugdev
  


Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
  (Einstein)


signature.asc
Description: PGP signature


Re: [gentoo-user] cdrecord says permission denied

2007-09-11 Thread Rafael Barrera Oro
sorry, missed it

2007/9/11, Renat Golubchyk [EMAIL PROTECTED]:

 On Tue, 11 Sep 2007 15:04:04 -0300 Rafael Barrera Oro
 [EMAIL PROTECTED] wrote:
  did you try adding yourself to the cdrom group?

 I *am* in the cdrom group, as I have already wrote.

   $ groups
   adm wheel cron audio cdrom video cdrw usb users locate portage plugdev
  
 


 Renat

 --
 Probleme kann man niemals mit derselben Denkweise loesen,
 durch die sie entstanden sind.
   (Einstein)




Re: [gentoo-user] cdrecord says permission denied

2007-09-11 Thread Stephen Wittig
The only things that I can guess are that it is trying to update
something in /proc or it needs to load a kernel module before
writing.

Just for fun - try burning a disk as root. Then try burning another
dist as a non-root user. If the the second disk burns then one or the
other of the above is the problem.

-Good Luck, Stephen


On 9/11/07, Renat Golubchyk [EMAIL PROTECTED] wrote:
 On Tue, 11 Sep 2007 15:04:04 -0300 Rafael Barrera Oro
 [EMAIL PROTECTED] wrote:
  did you try adding yourself to the cdrom group?

 I *am* in the cdrom group, as I have already wrote.

   $ groups
   adm wheel cron audio cdrom video cdrw usb users locate portage plugdev
   


 Renat

 --
 Probleme kann man niemals mit derselben Denkweise loesen,
 durch die sie entstanden sind.
   (Einstein)


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] cdrecord says permission denied

2007-09-11 Thread Renat Golubchyk
On Tue, 11 Sep 2007 16:27:15 -0500 Stephen Wittig [EMAIL PROTECTED]
wrote:
 The only things that I can guess are that it is trying to update
 something in /proc or it needs to load a kernel module before
 writing.

Why would cdrecord want to update anything in /proc? There is no
informatiom that cdrecord uses. And by the way, strace didn't show
anything helpful.

 Just for fun - try burning a disk as root. Then try burning another
 dist as a non-root user.

I can not burn CDs as a non-root user (i.e. unprivileged; I can burn
with sudo). That's why I wrote the email in the first place. ;-)


Cheers,
Renat

-- 
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
  (Einstein)


signature.asc
Description: PGP signature