Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Oct 2009 17:05:08 -0500
From:      Raymond Gibson <raymond.gibson@verizon.net>
To:        Patrick Lamaiziere <patfbsd@davenulle.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: jail - unable to print from inside jail
Message-ID:  <200910021705.08996.raymond.gibson@verizon.net>
In-Reply-To: <20091002233223.4e957d44@baby-jane.lamaiziere.net>
References:  <200910011533.01028.raymond.gibson@verizon.net> <200910021531.55452.raymond.gibson@verizon.net> <20091002233223.4e957d44@baby-jane.lamaiziere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 02 October 2009 04:32:23 pm Patrick Lamaiziere wrote:
> Le Fri, 02 Oct 2009 15:31:55 -0500,
>
> Raymond Gibson <raymond.gibson@verizon.net> a =E9crit :
> > On Friday 02 October 2009 02:31:06 am Bernt Hansson wrote:
> > > 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.
> >
> > i tried to set 666 for devfs.rules & devfs.conf in both host and
> > jail, but that didn't work.
> >
> > any more ideas?
>
> How do you start your jail? For a jail, the devfs rule applied is the
> one specified for the jail in /etc/rc.conf, something like
>
> jail_jailname_devfs_ruleset=3D"devfsrules_jail" # devfs ruleset to
> apply to jail
>
> Regards.

i'm using ezjail.

ezjail is started from /etc/rc.conf with ezjail_enable=3D"YES".

i thought the following would be read into the jail's configuration.

/usr/local/etc/ezjail/PrintServer
export jail_PrintServer_hostname=3D"PrintServer"
export jail_PrintServer_ip=3D"192.168.1.52"
export jail_PrintServer_rootdir=3D"/usr/jails/PrintServer"
export jail_PrintServer_exec=3D"/bin/sh /etc/rc"
export jail_PrintServer_mount_enable=3D"YES"
export jail_PrintServer_devfs_enable=3D"YES"
export jail_PrintServer_devfs_ruleset=3D"devfsrules_jail_PrintServer"
export jail_PrintServer_procfs_enable=3D"YES"
export jail_PrintServer_fdescfs_enable=3D"YES"
export jail_PrintServer_image=3D""
export jail_PrintServer_imagetype=3D""
export jail_PrintServer_attachparams=3D""
export jail_PrintServer_attachblocking=3D""
export jail_PrintServer_forceblocking=3D""

i put PrintServer_devfs_ruleset=3D"devfsrules_jail_PrintServer" into my rc.=
conf=20
and rebooted. no luck, i still get permission denied.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910021705.08996.raymond.gibson>