On Thu, Aug 6, 2009=
at 12:27 PM, Igor Cicimov
<
@gmail.com">icicimov@gmail.com> wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Nick, that=
was a good pointer. I enabled the su command in chroot and copied over som=
e of the libraries linked to it:
cp /usr/lib/libbsm.so.1 /chroot/usr/lib/libbsm.so.1
cp /usr/lib/libp=
roject.so.1 /chroot/usr/lib/libproject.so.1
cp /usr/lib/libpam.so.1 /chroot/usr/lib/libpam.so.1
cp /usr/lib/libproc.=
so.1 /chroot/usr/lib/libproc.so.1
cp /usr/lib/librtld_db.so.1 /chroot/us=
r/lib/librtld_db.so.1
cp /usr/lib/libelf.so.1 /chroot/usr/lib/libelf.so.=
1
and that did the trick. I guess the libpam was missing and that was=
the reason for authentication not working properly.
Now I have some=
other problems. When I try to start the server with SSL enabled I get the =
following error:
[Thu Aug 06 12:04:31 2009] [info] Init: Seeding PRNG with 136 bytes=
of entropy
[Thu Aug 06 12:04:31 2009] [info] Init: Generating temporary=
RSA private keys (512/1024 bits)
[Thu Aug 06 12:04:32 2009] [info] Init=
: Generating temporary DH parameters (512/1024 bits)
[Thu Aug 06 12:04:32 2009] [error] (2)No such file or directory: Cannot cre=
ate SSLMutex
Also the mod_rewrite complains too:
[Thu Aug=
06 12:21:35 2009] [crit] (2)No such file or directory: mod_rewrite: could =
not create rewrite_log_lock
Configuration Failed
I have the following devices created in chroot:=
# ls -l /chroot/dev
total 0
crw-rw-rw- 1 root =A0=
=A0 other 13,=A0 2 Aug=A0 5 18:02 null
crw-r--r-- 1 ro=
ot other =A0 190,=A0 0 Aug=A0 5 18:03 random
crw-rw-rw- 1 root other 41,=A0 0 Aug=A0 5 17:=
27 udp
crw-r--r-- 1 root other =A0 190,=A0 1 Aug=
=A0 5 18:03 urandom
crw-rw-rw- 1 root other =A0=
=A0 13, 12 Aug=A0 5 18:02 zero
Thanks again for your help.
Cheers,
Igor
class=3D"h5">
On Thu, Aug 6, 2009 at =
10:30 AM, Nick Kew
<
m" target=3D"_blank">nick@webthing.com> wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 6 Aug 2009, at 01:06, Igor Cicimov wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,
I have built and install apache2.2.11 on solaris 9 and all is working fine =
but when I put the server in chroot I faced some problems. More specificall=
y the server complains about the user I'm running apache under and says=
"can't find the user with the given UID". My chroot is /chro=
ot and when i built it I have transfered the /etc/passwd, /etc/group, /etc/=
netconfig, /etc/resolv.conf and /etc/hosts files into /chroot/etc directory=
and I have transfered all the libraries linked to the httpd process that I=
could find with ldd and truss. Any idea what am I still missing?
man chroot
What happens when (in a shell) you perform the same chroot then su
to the apache user/group?
If that doesn't tell you anything useful, tell us whether you're ap=
ache
within a chroot, or using Apache's ChrootDir.
--
Nick Kew
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:
lank">http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail:
g" target=3D"_blank">users-unsubscribe@httpd.apache.org
=A0" =A0 from the digest:
httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.apache.o=
rg
For additional commands, e-mail:
org" target=3D"_blank">users-help@httpd.apache.org