How are you doing this?However when I log into it,
chroot /compat/ubuntu /bin/bashHow are you doing this?
This doesn't 'log in' actually. You're just starting a bash shell in a chroot(8). Has nothing to do with jails either.chroot /compat/ubuntu /bin/bash
Hi, I used this setup :https://wiki.freebsd.org/LinuxJails. So you are saying that this has nothing to do with jails? Please have look at root directories of FreeBSD and Ubuntu Linux installed on the same machine.This doesn't 'log in' actually. You're just starting a bash shell in a chroot(8). Has nothing to do with jails either.
It has nothing to do with jails. Do you see a jail.conf or the jail(8) command anywhere?So you are saying that this has nothing to do with jails?
Just because the directories are on the same system doesn't mean it's a jail. The Linux compatibility layer isn't a jail.Please have look at root directories of FreeBSD and Ubuntu Linux installed on the same machine.
Hi, Please find the following details below.It has nothing to do with jails. Do you see a jail.conf or the jail(8) command anywhere?
Just because the directories are on the same system doesn't mean it's a jail. The Linux compatibility layer isn't a jail.
A jail(8) and a chroot(8) are two entirely different things. A chroot(8) only puts boundaries on a filesystem, while a jail(8) process runs in an entirely different namespace on the kernel.
something
jls
JID IP Address Hostname Path
1 192.168.2.5 webjail /jails/webjail
jexec 1 /bin/sh
With a 'real' jail I would recommend something likejexec 1 /bin/sh
jexec 1 /usr/bin/login -f root
or when you want to login as a user jexec 1 /usr/bin/login -f <username>
(that user has to exist within that jail). You could use jexec 1 /bin/sh
but you're not actually logging in that way, you are starting a shell in the namespace of that jail.This page describes the steps required to configure Ubuntu-based Linux jail or chroot
Also note that the instructions don't describe how to manage the jail; take a look at this article for instructions on how to manage your Ubuntu jail using iocage, or this one for Bastille.
Thanks for the reply. At this point I am unable to launch firefox within the chroot environment. it gives me the below results. Please let me know. I was able to log into user by creating a new user within the chroot subsystem. I was trying to log into the FreeBSD user previously. I tried that bacuse FreeBSD user was visible within the chroot subsystem home directory.With a 'real' jail I would recommend something likejexec 1 /usr/bin/login -f root
or when you want to login as a userjexec 1 /usr/bin/login -f <username>
(that user has to exist within that jail). You could usejexec 1 /bin/sh
but you're not actually logging in that way, you are starting a shell in the namespace of that jail.
I think part of Schroter 's confusion is the wording in the wiki article.
But the article only shows how to set up an Ubuntu based Linux environment, similar to what emulators/linux_base-c7 does with CentOS7. While you could use those instruction to create an actual Ubuntu jail(8), how you should do that isn't explained in the article.
(newEnv) schroter1@SCHROTER:~$ firefox
No protocol specified
Unable to init server: Broadway display type not supported: unix:0.0
Error: cannot open display: unix:0.0