CD writing within jail: devfs and permissions

nbbb

Dabbler
Joined
Oct 1, 2019
Messages
14
hi, i am trying to get my freenas working as a cd ripper / burner.

so far i have been using abcde successfully to rip from the cd drive but writing fails with what i think are permission problems. can someone help?


in the jail i have the following situation:

less /etc/devfs.conf
own cd0 root:operator
perm cd0 0660
own xpt0 root:operator
perm xpt0 0660
own pass4 root:operator
perm pass4 0660

sudo camcontrol devlist
...
<PIONEER BD-RW BDR-UD03 1.10> at scbus8 target 0 lun 0 (pass4,cd0)

ls -l /dev/{cd0,xpt0,pass4}
crw-r----- 1 root operator 0x88 Dec 19 21:51 /dev/cd0
crw------- 1 root operator 0x43 Dec 5 20:11 /dev/pass4
crw------- 1 root operator 0x38 Dec 5 20:11 /dev/xpt0

this is surprising to me as i would think i gave the operator group rw permissions? i can't do 'camcontrol devlist' as my user which is a member of the operator group, which seems logical but is not desired.

then, the actual problem:
i try 'cdrecord dev=8,0,0 -checkdrive' which gives 'insufficient privileges' type errors.
then, 'sudo cdrecord dev=8,0,0 -checkdrive' gives

Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd11.3) Copyright (C) 1995-2015 Joerg Schilling
scsidev: '8,0,0'
scsibus: 8 target: 0 lun: 0
cdrecord: Operation not permitted. Cannot open or use SCSI driver.

what's wrong? can i just chmod the device files? that seems wonky...

thanks for any help!
 

nbbb

Dabbler
Joined
Oct 1, 2019
Messages
14
PS. this is a 11.3 jail on an 11.2U7 freenas install. the jail is configured with the most important permissions that are required to get a devfs going in the first place; and i do get the cd drive to read cds. let me know what other information is needed!
 

nbbb

Dabbler
Joined
Oct 1, 2019
Messages
14
Hi, sorry for the delayed answer. No, I wasn't. Maybe this is a FreeBSD question more than a FreeNAS one? I'm not really familiar with FreeBSD. Is there a FreeBSD forum I could try?
 
Top