* Togan Muftuoglu; on 19 Jan, 2002 wrote:
Hi,
I have come to the point where its related with permisions I believe
compartment nicely builds the files and directories as far as I can see
yet it still does not start what is that I am not catching
If I use --caps CAP_NET_BIND_SERVICE
./webjail: exit: too many arguments
Starting JAILED httpd [ ]I am in verbose mode now
Will fork if everything is fine
Capabilities will be set to 0x400
GID will be set to 0
cp: cannot stat `\\': No such file or directory
cp: cannot create regular file `/jail/webserver//etc/init.d/apache': No such file or directory
cp: cannot stat `/usr/local/httpd/cgi-bin/*': No such file or directory
cp: cannot stat `/etc/resolve.conf': No such file or directory
cp: cannot stat `/etc/services/': Not a directory
cp: cannot stat `/etc/hosts/': Not a directory
chmod: getting attributes of `bin/*': No such file or directory
mknod: `dev/null': File exists
Init program /jail/bin/init_apache run successfully
Chrooted sucessfully to /jail/webserver
setgroups() successfully set
GID successfully set to 0
Capabilities successfully set to 0x400
FD_CLOEXEC successfully set on all filedescriptors > 2
core size limit successfully set to 0 bytes
7
[80C[10D[1;32mdone[m8
Successfully forked
httpd: bad user name wwwrun
if I dont use CAP and say --user wwwrun --group --nogroup and no
./webjail: exit: too many arguments
Starting JAILED httpd [ ]I am in verbose mode now
Will fork if everything is fine
UID will be set to 30
GID will be set to 65534
cp: cannot stat `\\': No such file or directory
cp: cannot create regular file `/jail/webserver//etc/init.d/apache': No such file or directory
cp: cannot stat `/usr/local/httpd/cgi-bin/*': No such file or directory
cp: cannot stat `/etc/resolve.conf': No such file or directory
cp: cannot stat `/etc/services/': Not a directory
cp: cannot stat `/etc/hosts/': Not a directory
chmod: getting attributes of `bin/*': No such file or directory
mknod: `dev/null': File exists
Init program /jail/bin/init_apache run successfully
Chrooted sucessfully to /jail/webserver
setgroups() successfully set
GID successfully set to 65534
UID successfully set to 30
FD_CLOEXEC successfully set on all filedescriptors > 2
core size limit successfully set to 0 bytes
7
[80C[10D[1;32mdone[m8
Successfully forked
Ouch! ap_mm_create(1048576, "/var/lib/httpd/mm.25436") failed
Error: MM: mm:core: failed to open semaphore file (Permission denied): OS: No such file or directory
--
Togan Muftuoglu
Unofficial SuSE FAQ Maintainer
http://dinamizm.ath.cx