Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have access to a a previously set up FreeBSD box with a number of jails on it. One of the jails is an SQL server and does not have ssh enabled on it.

How can i gain access to a shell on that sql jail from the host machine if i have root rights on it?

Thank you in advance.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

First run jls to find out needed jail ID, than jexec ${jailID} /bin/tcsh (${jailID} is an ID of your jail)

share|improve this answer
    
+1 You might add that jails don't have shells (though you can start one in the same jail as another application), they aren't OS virtualization, they are application/userland virtualization. The jails all share the same kernel. More in the handbook. –  Chris S Jan 28 '11 at 4:10
    
Even more, jail is essentially just resource isolation, not virtualization. There is another project more close to virtualization: 7he.at/freebsd/vps –  gelraen Jan 28 '11 at 9:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.