Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to burn a Data CD as a nonpriviledged user with k3b and it gives me an error message. It also doesn't work when burning with SUID set for /usr/bin/cdrecorder
This is the debug output from k3b(/usr/bin/cdrecorder doesn't have SUID set)
Code:
System
-----------------------
K3b Version: 0.12.15
KDE Version: 3.5.2
QT Version: 3.3.5
Kernel: 2.6.16
Devices
-----------------------
HL-DT-ST CD-RW GCE-8160B 2.01 (/dev/hdc, ) at /mnt/cdrom [CD-R; CD-RW; CD-ROM] [CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R]
DVDROM 8 X 40 (/dev/hdd, ) at /mnt/dvd [CD-ROM; DVD-ROM] [Error] [None]
K3b
-----------------------
Size of filesystem calculated: 358519
Used versions
-----------------------
cdrecord: 2.1.1a04
cdrecord
-----------------------
/usr/bin/cdrecord: Warning: Running on Linux-2.6.16
/usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer.
/usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
/usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/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
SCSI buffer size: 64512
Cdrecord-Clone 2.01.01a04 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
Driveropts: 'burnfree'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'CD-RW GCE-8160B '
Revision : '2.01'
Device seems to be: Generic mmc CD-RW.
Current: 0x0009
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008
Profile: 0x0002 (current)
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 : 1971200 = 1925 KB
FIFO size : 4194304 = 4096 KB
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
Track 01: data 700 MB
Total size: 804 MB (79:40.25) = 358519 sectors
Lout start: 804 MB (79:42/19) = 358519 sectors
cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/hdc speed=16 -dao driveropts=burnfree -eject -data -tsize=358519s -
mkisofs
-----------------------
358519
mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid K3b data project -volset -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher -preparer -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-luna/k3btYxpMb.tmp -rational-rock -hide-list /tmp/kde-luna/k3bXYGusa.tmp -joliet -hide-joliet-list /tmp/kde-luna/k3bDiv7Yb.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-luna/k3bqqjRcc.tmp
Hmm - on at least a few distros, there is a group which has permission for burning CDs/DVD's. You should take a look to see if your distro has the group and make sure that this nonprivileged user is at least a member of that group. Basically the group is one that has write permissions to the device that corresponds to your burner - ie /dev/hdc/.
Hmm - I am wandering if permissions have anything to do with it. You say it does not burn even with SUID set. It you actually run kb as root, can you burn then?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.