Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2008 09:38:04 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        jeno.kiev@gmail.com
Cc:        freebsd-jail@freebsd.org
Subject:   Re: getpwnam: root: No such file or directory
Message-ID:  <4882EB5C.20206@quip.cz>
In-Reply-To: <48825D18.1010001@webanoide.org>
References:  <f1eca1b20807190529i523c22bbp7f20bfc2561d11bc@mail.gmail.com>		<488233B0.1000904@webanoide.org>	<f1eca1b20807191319t4969901aya8c7b06c8f81c9dc@mail.gmail.com> <48825D18.1010001@webanoide.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mikhail Goriachev wrote:
> εΧΗΕΞΙΚ ϋΑΠΟΧΑΜ wrote:
> 
>> Thanks!
>>
>> I try:
>> # /usr/sbin/pwd_mkdb -d /usr/local/jails/test/etc -p
>> /usr/local/jails/test/etc/master.passwd
>>
>> and I have:
>>
>> # pwd_mkdb: /usr/local/jails/test/etc/master.passwd: No such file or 
>> directory
>>
>> then I make empty file:
>>
>> # touch /usr/local/jails/test/etc/master.passwd
>>
>> all good! no errors, no messages...
>>
>> I try start jail again, and I have: =\
>>
>> =============================
>> /etc/rc.conf: //: Permission denied
>> Configuring jails:.
>> Starting jails: cannot start jail "test":
>> jail: root: no such user
>> =============================

Did you run "make distribution DESTDIR=/path/to/jail/dir" or something 
similar? I don't think so and your jail environment seems uncomplete!
Read the man page example section:
http://www.freebsd.org/cgi/man.cgi?query=jail&sektion=0&manpath=FreeBSD+7.0-RELEASE
and Handbook to build jail properly
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html

> The jail hasn't been completely populated.
> 
> As Miroslav already stated, can you show us the rc.conf of the host and 
> the way you populated the jail?
> 
> 
> Regards,
> Mikhail.
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4882EB5C.20206>