Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Oct 2009 09:31:06 +0200
From:      Bernt Hansson <bernt@bah.homeip.net>
To:        Raymond Gibson <raymond.gibson@verizon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: jail - unable to print from inside jail
Message-ID:  <4AC5AC3A.7050009@bah.homeip.net>
In-Reply-To: <200910011533.01028.raymond.gibson@verizon.net>
References:  <200910011533.01028.raymond.gibson@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Raymond Gibson said the following on 2009-10-01 22:33:
> I'm trying to setup CUPS (in a jail) using a USB printer on
> my host machine. My host was built with as a minimal FreeBSD 7.2-Release 
> install. I added ezjail and created two jails. Both jails are working and I 
> can login to both using ssh.

> On the host i did the following:
> 
> I added this to /etc/devfs.conf
> own     ultp0   root:cups
> perm    ultp0   0660
> 
> 
> I added this to /etc/devfs.rules
> 
> # Printers
> add path ltp[0-9]* mode 0660 group cups
> add path ultp[0-9]* mode 0660 group cups
> add path unltp[0-9]* mode 0660 group cups
> 
> [devfsrules_jail_PrintServer=10]
> add path ltp[0-9]* mode 0660 group cups
> add path ultp[0-9]* mode 0660 group cups
> add path unltp[0-9]* mode 0660 group cups

Something doesn't seem right with you devfs.rules file.
Mine looks like this:

[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups

> After a reboot, I can access the administration website.
> I added a printer and allowed remote access. 
> 
>>From administration page - printer status:
> Description: HP Photosmart 7350
> Location: Home
> Printer Driver: HP PhotoSmart 7350 Foomatic/hpijs (recommended)
> Printer State: idle, accepting jobs, published.
> Device URI: usb:/dev/ulpt0 
> 
> 
> Wen printing a test page from administration page i get permission denied.
> HPPhotosmart7350 (Default Printer) "Unable to open device file "/dev/ulpt0": 
> Permission denied"
> 
> How do i solve this?
> 
> Please let me know if more information is needed.
> 
> I thank you for your time and help in advance.
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC5AC3A.7050009>