damian0815
Cadet
- Joined
- Feb 4, 2012
- Messages
- 4
Hi all,
I'm trying to setup cups to print to a usb-attached printer. I followed the instructions here: http://superuser.com/questions/673880/airprint-and-airplay-on-freenas to install cups in a jail on the FreeNAS machine. I've got cups working (if I manually chmod a+rw /dev/ulpt0), but I can't seem to get the devfs rules to apply: /etc/rc.d/devfs restart in the jail results in 'devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted'
Following some advice from #freebsd on IRC I added a cups user to the host with the same userid and groupid, and then added the devfs rules to the host rather than the jail. So now on the host:
But in the jail:
I tried adding jail_cups_devfs_ruleset=usbrules to the rc.conf but that didn't help either.
What's the magic trick to getting devfs rules working in a jail?
I'm trying to setup cups to print to a usb-attached printer. I followed the instructions here: http://superuser.com/questions/673880/airprint-and-airplay-on-freenas to install cups in a jail on the FreeNAS machine. I've got cups working (if I manually chmod a+rw /dev/ulpt0), but I can't seem to get the devfs rules to apply: /etc/rc.d/devfs restart in the jail results in 'devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted'
Following some advice from #freebsd on IRC I added a cups user to the host with the same userid and groupid, and then added the devfs rules to the host rather than the jail. So now on the host:
Code:
[user@freenas ~]$ ls -lh /dev/ulpt0 crw-rw---- 1 root cups 0x67 Jan 10 09:07 /dev/ulpt0
But in the jail:
Code:
# ls -lh /dev/ulpt0 crw-r--r-- 1 root operator 0x67 Jan 10 09:07 /dev/ulpt0
I tried adding jail_cups_devfs_ruleset=usbrules to the rc.conf but that didn't help either.
What's the magic trick to getting devfs rules working in a jail?