Скачал сурцы, собрал, типа: make INS_BASE=~/cdrtools PREFIX=/usr install
Сделал DEBIAN/control такой:
Package: cdrtools
Version: 1:3.01a13-0.1ubuntu3
Architecture: amd64
Maintainer: mymake
Installed-Size:
Depends: libc6, libgcc1, libstdc++6
Replaces: genisoimage, cdrkit, cdrdao, wodim, dvd+rw-tools
Section: otherosfs
Priority: optional
Homepage: http://cdrecord.berlios.de
Description: command line CD/DVD writing tool. cdrtools allows you to create CDs or DVDs on a CD/DVD recorder. It supports writing data, audio, mixed, multi-session, and CD+ disc and DVD data and video disks on DVD capable devices, on just about every type of CD/DVD recorder out there.
Устанавливаю и получаю в вывод:
$ cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01a13 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
Linux sg driver version: 3.5.34
cdrecord: Отказано в доступе. Cannot open '/dev/sg3'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Что-то с правами, при том, что...
$ ls -l /dev/ | grep sg
drwxr-xr-x 2 root root 80 апр. 22 19:39 bsg
crw-r--r-- 1 root root 1, 11 апр. 22 19:39 kmsg
crwxrwxrwx 1 root root 21, 0 апр. 22 19:52 sg0
crwxrwxrwx 1 root root 21, 1 апр. 22 19:52 sg1
crw------- 1 root root 21, 10 апр. 22 19:52 sg10
crw------- 1 root root 21, 11 апр. 22 19:52 sg11
crw------- 1 root root 21, 12 апр. 22 19:52 sg12
crw------- 1 root root 21, 13 апр. 22 19:52 sg13
crw------- 1 root root 21, 14 апр. 22 19:52 sg14
crw------- 1 root root 21, 15 апр. 22 19:52 sg15
crw------- 1 root root 21, 16 апр. 22 19:52 sg16
crw-rw-rw- 1 root root 21, 2 апр. 22 19:52 sg2
crw------- 1 root root 21, 3 апр. 22 19:52 sg3
crw------- 1 root root 21, 4 апр. 22 19:52 sg4
crw------- 1 root root 21, 5 апр. 22 19:52 sg5
crw------- 1 root root 21, 6 апр. 22 19:52 sg6
crw------- 1 root root 21, 7 апр. 22 19:52 sg7
crw------- 1 root root 21, 8 апр. 22 19:52 sg8
crw------- 1 root root 21, 9 апр. 22 19:52 sg9
Вопрос такой: как надо поставить права в пакете, чтобы работало ?
UPD: Проблема решилась из доков: добавлением опции DEFINSUMASK=002 и сборкой от имени рута где-нибудь в /tmp (вместо ~)