Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cdrecord works... but I'm a little worried - solved!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
rain
n00b
n00b


Joined: 23 Sep 2002
Posts: 18
Location: Boston, MA, USA

PostPosted: Thu Oct 10, 2002 9:45 pm    Post subject: cdrecord works... but I'm a little worried - solved! Reply with quote

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? :P


Last edited by rain on Fri Oct 11, 2002 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
rincewind
Apprentice
Apprentice


Joined: 16 Aug 2002
Posts: 172
Location: Essen, Germany

PostPosted: Fri Oct 11, 2002 5:46 am    Post subject: Reply with quote

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
View user's profile Send private message
rain
n00b
n00b


Joined: 23 Sep 2002
Posts: 18
Location: Boston, MA, USA

PostPosted: Fri Oct 11, 2002 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Mon May 26, 2003 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum