View previous topic :: View next topic |
Author |
Message |
rain n00b
Joined: 23 Sep 2002 Posts: 18 Location: Boston, MA, USA
|
Posted: Thu Oct 10, 2002 9:45 pm Post subject: cdrecord works... but I'm a little worried - solved! |
|
|
Well, I've cod SCSI-emulation all set, but when I run cdrecord I get the following set of warnings:
Code: | cdrecord: Operation not permitted. 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.
|
Now, mind that cd's burn fine, but I like things to be without warnings, i'm just picky like that.
Here's what the pertinent section of my devfsd.conf looks like:
Code: | # Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER ^sg0$ PERMISSIONS root.cdrw 660
# Same for /dev/sr0
REGISTER ^sr0$ PERMISSIONS root.cdrw 660
...
# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrw
|
and the permissions on both /dev/scsi/host0/bus0/target0/lun0/generic
/dev/scsi/host0/bus0/target0/lun0/cd are crw-rw---- 1 root cdrw
what gives?
Last edited by rain on Fri Oct 11, 2002 6:28 am; edited 1 time in total |
|
Back to top |
|
|
rincewind Apprentice
Joined: 16 Aug 2002 Posts: 172 Location: Essen, Germany
|
Posted: Fri Oct 11, 2002 5:46 am Post subject: |
|
|
hi
I suggest cdrecord has not the permisiion to lock the drive and to set high priority
try setting the suid bit by
chmod u+s /usr/bin/cdrecord. |
|
Back to top |
|
|
rain n00b
Joined: 23 Sep 2002 Posts: 18 Location: Boston, MA, USA
|
Posted: Fri Oct 11, 2002 6:28 am Post subject: |
|
|
rincewind wrote: | hi
I suggest cdrecord has not the permisiion to lock the drive and to set high priority
try setting the suid bit by
chmod u+s /usr/bin/cdrecord. |
Worked perfectly, thanks a whole lot. |
|
Back to top |
|
|
red_over_blue Guru
Joined: 16 Dec 2002 Posts: 310
|
Posted: Mon May 26, 2003 9:35 pm Post subject: |
|
|
I have the same errors and making the cdrecord binary setuid root does not fix it. I have wasted 2 hours playing with groups and permissions to try to get rid of the error messages. Can anyone offer any other suggestion? Permissions of something else besides cdrecord?
Code: |
.
.
.
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.
Starting to write CD/DVD at speed 8 in real TAO mode for single session.
Last chance to quit, starting real write 8 seconds.
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 1 times full, min fill was 0%.
john@limbo john $ ls -l /usr/bin/cdrecord
-rwsr-x--- 1 root cdrw 328148 May 25 23:55 /usr/bin/cdrecord
john@limbo john $ groups
users wheel audio cdrw apache usb portage cdrecording
|
|
|
Back to top |
|
|
|