Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 13th June 2008
bgobs bgobs is offline
Port Guard
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Default help for setting ezjail?

this is what i did:

#cd /usr/ports/sysutils/ezjail && make install clean
#cp /usr/local/etc/ezjail.conf.sample /usr/local/etc/ezjail.conf
#vi /usr/local/etc/ezjail.conf #and I uncomment all, so my conf have default values
#ezjail-admin update

#ifconfig rl0 alias netmask
#echo 'ifconfig_rl0_alias0="inet netmask"' >> /etc/rc.conf

#ezjail-admin create www.my-domain.com
#/usr/local/etc/rc.d/ezjail.sh start

#jail /usr/jails/www.my-domain.com www.my-domain.com /bin/sh

and i get this error:
jail: execv: /bin/sh: No such file or directory

#ls -la /usr/jails/www.my-domain.com
lrwxrwxrwx 1 root wheel 13 Jun 13 18:34 bin -> /basejail/bin

#/usr/jails/www.my-domain.com/basejail is empty

#/usr/jails/basejail/bin has sh

# ezjail-admin list
DS N/A www.my-domain.com /usr/jails/www.my-domain.com

do i need to change some path in some conf?

or i must copy all files from /usr/jails/basejail/ to each jail's basejail directory?

or i miss something important for creating jail with ezjail?

i'm using FreeBSD 6.2-RELEASE and ezjail-2.1

Last edited by bgobs; 13th June 2008 at 04:49 PM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd within ezjail? zelut FreeBSD General 7 10th February 2009 10:31 PM
ezjail /usr/home users and groups question neurosis FreeBSD Security 7 8th September 2008 08:40 PM
Jails, ezjail, apache, very newbie question. neurosis FreeBSD General 15 23rd August 2008 01:38 PM
Setting Up MPD benjgvps FreeBSD General 0 21st May 2008 12:20 PM
thanks for setting this up DraconianTimes Off-Topic 8 5th May 2008 08:14 AM

All times are GMT. The time now is 11:31 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick