LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-11-2004, 11:41 PM   #1
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Rep: Reputation: 15
CDrecord runs for root, not other user(s)


I've been reading all the other posts about CD record problems, but can't find one that quite solves my problem.

When I run cdrecord as root, I have no problem, it burns away happily.

When I try to run it as any other user, I get:


Code:
drecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
TOC Type: 1 = CD-ROM
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.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?rg Schilling
This was working fine up until a few days ago, and I haven't made a single change to the machine that I know of; although I did have to do my first reboot in 90 days in order to try to resolve an issue with a usb card reader I have... after the reboot, this error started happening.

I did run cdrecord-scanbus and 1,0,0 is the correct address, although I guess that's obvious since it works when I run it as root.

It's obviously a permissions problem to me ... but WHERE?

Thanks!

the cdrom burner's line in my /etc/fstab looks like this:

Code:
/dev/cdrom   /mnt/cdrom   udf,iso9660,noauto,users,kudzu,ro 0 0

Last edited by ewto; 01-12-2004 at 01:01 AM.
 
Old 01-12-2004, 01:58 AM   #2
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Original Poster
Rep: Reputation: 15
working for now, but not best solution...

Ok, I have it working for now by using sudo.

In my sudoers file I added the line:

Code:
%username ALL=(ALL)  NOPASSWD: ALL

I relatively certain that this presents a security problem ... but for now it has my program running. What is the correct format for me to assign the sudo to only the cdrecord program? I tried several ways and visudo kept telling me there was a syntax error.

Thanks
 
Old 01-12-2004, 05:35 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Quick and dirty solution: chmod a+rw /dev/sg0, then chmod a+rw /dev/scd0.
For more elegant solutions using group access, search these forums.

Håkan
 
Old 01-12-2004, 06:20 AM   #4
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks!

That sounds much safer than the sudo solution.

Thanks again for your time!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
K3B and root privileges for cdrecord and cdrdao TitaniumTaz Linux - Software 2 03-03-2005 11:18 PM
cdrecord only as root. ilikejam Linux - Software 11 08-21-2004 06:32 AM
cdrecord works for root, but not non-priviledged user mpdegroat Linux - Software 3 05-24-2004 11:15 AM
cdrecord as user jeffkjo Linux - Software 10 03-26-2004 11:35 AM
cdrecord for normal user? GT_Onizuka Linux - Newbie 1 09-11-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration