shad0wca7
Dabbler
- Joined
- Jun 6, 2016
- Messages
- 13
I've followed a combination of the many CUPS guides around and the permissions seem to be patchy at best, I've taken to putting this in /etc/rc.local:
Every now and then I'd go to print and the jail just couldn't see the printer. So I made a cron job to run rc.local every 12 hours - the printer would still 'turn invisible'. Now I've set that cron job to every hour.
I don't know how successful that will be yet but it feels very hacky and like there should be a correct way of doing this.. I can't be the only person on 9.10 running CUPS in a jail!?
Code:
# change permissions in jail for printer chmod -R 0770 /dev/usb* chmod -R 0660 /dev/ugen* chmod -R 0660 /dev/unlpt* chmod -R 0660 /dev/ulpt* chown -R root:cups /dev/lpt* chown -R root:cups /dev/ugen* chown -R root:cups /dev/usb* chown -R root:cups /dev/unlpt*
Every now and then I'd go to print and the jail just couldn't see the printer. So I made a cron job to run rc.local every 12 hours - the printer would still 'turn invisible'. Now I've set that cron job to every hour.
I don't know how successful that will be yet but it feels very hacky and like there should be a correct way of doing this.. I can't be the only person on 9.10 running CUPS in a jail!?