Cannot Burn CDs

Since re-installing 18.04.1, I cannot burn cds (or dvds). I have set up my account to use cd-rom drives, and am a member of the root group. This happens with both Brasero and K3b. The error msg on K3b is to the effect that it does not have permission to burn discs.

The same thing happens on a different 18.04 computer as well. I am the owner of the files I want to burn. I tried to chown /dev/sr0 so that I am the owner, but that did not change anything.

Is your user a member of the cdrom group too?

Yes. Thanks! Here is the K3b error msg:

  cdrecord has no permission to open the device.  The cd drive is selected in Settings.

This command seems to have solved the issue:

sudo chmod 4711 /usr/bin/wodim; sudo chmod 4711 /usr/bin/cdrdao

Where did you find this solution?

I found it online at:

Your user must be a member of the cdrom group to write to the cdrom device (/dev/sr0).
You can check

grep cdrom /etc/group

If your user is not a member of the cdrom group you must add your user to the cdrom group as follows:

sudo usermod -aG cdrom "your_cdrom_user"

replacing “your_cdrom_user” with the actual username. The log out and log back in to get new permissions.

You can check the permissions of the cdrom device with

ls -al /dev/sr0

NOTE: Running stuff setuid root is bad. Do not do it!

djb

Thanks for your suggestion. I had already tried all that, but no joy.

    It seems that with Ubuntu 18.04 (and perhaps later) permissions need to be changed on files in /usr/bin.  This command fixed the issue:

sudo chmod 4711 /usr/bin/wodim; sudo chmod 4711 /usr/bin/cdrdao

NO! Burning CDROM works fine here. You have another problem if you have to run those files as root. Making /usr/bin/wodim and /usr/bin/cdrao setuid root is a security risk and breaks a great many other things in Linux. You are basically giving cdrdao permission to write all over everything on your system, CDROM , DISK, Network, Screen, etc..... You do not want to allow that permission. A crash with /usr/bin/cdrao will trash your system. That is why only users in group cdrom can use cdrao to write to the cdrom.

You don't want your user to be a member of the root group. Making your user a member of the root group breaks stuff too.

Here is a list of the general group permissions in Debian from which Ubuntu is derived:
https://wiki.debian.org/SystemGroups

I don't remember what step adds the group cdrom settings automatically.

djb

I understand your point completely, but I cannot burn cds on both of my Ubuntu 18.04 computers, so really have no other choice.

I double-checked to make sure that I am a member of the cdrom group, but still no joy without changing the permission of those two system files. I logged out and back in, and even re-started, all in vain.

BTW, one of the computers had a fresh install of 18.04.1 a short while ago, so I do not have any idea why simply making myself a member of the cdrom group is not working.

Here is the result of the terminal command you gave:

$ls -al /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Jan 24 16:25 /dev/sr0

What does

grep cdrom /etc/group 

show?

djb

Does “eject /dev/sr0” work? Or do you have to put “sudo” in front?

$ grep cdrom /etc/group

    cdrom:x:24:merlin

It works without sudo. But this is with the permissions changed on the two system files.

The command worked on the computer that did not have the system file permissions changed. So why it is refusing to burn cds is still a mystery.

The problem must be with PAM security then. PAM messages are in “/var/log/auth.log”.

I do note that the authors of K3b have a 9 year old doc concerning permission problems:

I do not know if any of that doc applies to current Linux.

Sorry you are having a problem. Tracking down the source of the permission problem will be difficult unless one of the system logs, /var/log/syslog or /var/log/auth.log, have something useful. The next step would be doing simulated burns with wodim or cdrdao and looking through the debug output. Honestly, that is probably not worth doing unless you start to have permission problems with other devices and programs.

Good luck

djb

1 Like

Thanks very much for the info and assistance, Dave. Greatly appreciated!

    But the same exact problem also occurs with Brasero, so it is most likely not a PAM problem.  And in 18.04 there is no /etc/security/console.perm

    So unless some weird things start happening, I will leave the permissions changed for wodim and cdrdao.