Hi,

I setup a jail environment using man jail and with some more struggle
man rc.conf helped me out putting the stuff in the rc.conf file to start
at boot time. I created a user in the jail and in the jail sshd started so
that the user could log on. However, then i got no access to tty (bad file
descriptor). Then i looked into ${jail_rootdir}/dev and it was nearly
empty. So i mounted the devfs in the jailenv. I also mounted a procfs in
the jail. I attached a diff with the original rc.d/jail script, since i
had to adjust mine to make things happen at boot time.
Anybody got any other hints for me so that running for example apache in
the jail will be fine? Maybe I'll run into some other surprises?
Bye,

Mipam.

ps could you also cc to [EMAIL PROTECTED] since i aint subscribed to this
list?

--- /usr/src/etc/rc.d/jail      Mon May  5 17:38:41 2003
+++ /etc/rc.d/jail      Wed Aug 13 11:28:19 2003
@@ -54,7 +54,8 @@
                eval jail_ip=\"\$jail_${_jail}_ip\"
                eval jail_exec=\"\$jail_${_jail}_exec\"
                [ -z ${jail_exec} ] && jail_exec="/bin/sh /etc/rc"
-               
+               mount_devfs devfs ${jail_rootdir}/dev
+               mount -t procfs proc ${jail_rootdir}/proc       
                jail ${jail_rootdir} ${jail_hostname} ${jail_ip} ${jail_exec}
        done
 }
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to