Editing
Msg06308.html
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= [Vserver] chroot - permission denied = ----- * '''From:''' Schlomo Schapiro * '''Date:''' Wed, 25 Feb 2004 14:42:35 +0100 (CET) ----- <pre>Hi all,</pre> <br /> <code>I just installed VServer on my SuSE9.0 box and compiled a new 2.4.25 kernel with the OpenWall patches included.</code><br /> <br /> <pre>The vserver kernel subsystems seems to be there (checked with e.g. vps -ax)</pre> <br /> <code>I then downloaded the debian vserver to start testing and it won't start with this message:</code><br /> <br /> <pre>----------------------------------------------------------------------------------- # vserver debian start Starting the virtual server debian Server debian is not running ipv4root is now 10.1.1.34 Host name is now gss34.mikado.local Domain name is now New security context is 49175 Can't chroot to directory . (Operation not permitted) -----------------------------------------------------------------------------------</pre> <br /> <code>I started to play around with the chcontext tool and got a very strange thing: The CAP_SYS_CHROOT capability is not present !:</code><br /> <br /> <code>--------------------------------------------------------------------------------</code><br /> <code># /usr/sbin/chcontext --ctx 49176 bash -c 'getpcaps $$'</code><br /> <code>New security context is 49176</code><br /> <code>Capabilities for `4337': = cap_chown,cap_dac_override,cap_dac_read_search,cap_setgid,cap_setuid,cap_net_broadcast,cap_sys_resource,cap_sys_time,cap_sys_tty_config,cap_mknod,cap_lease+ep</code><br /> <code>---------------------------------------------------------------------------------</code><br /> <br /> <pre>When I do not give the --ctx parameter, all capabilities are present: --------------------------------------------------------------------------------- # /usr/sbin/chcontext bash -c 'getpcaps $$' New security context is 49176 Capabilities for `4334': =ep cap_setpcap-ep ----------------------------------------------------------------------------------</pre> <br /> <pre>That seems to be the reason why the vserver start command does not work.</pre> <br /> <pre>Do you have any ideas what yould be the problem ?</pre> <br /> <code>Some more questions:</code><br /> <code>* What about virtualized localhosts ? How can I give each vserver a private localhost(127.0.0.1) ?</code><br /> <code>* I am running samba in a chbind environment, however nmbd complains about not beeing able to bind to the IPs of the other vservers and doesn't start when I have any IP aliases defined. The error log looks like this:</code><br /> <code>------------------------------------------------------------------------------------</code><br /> <code>[2004/02/25 12:51:03, 0] nmbd/nmbd.c:main(795)</code><br /> <code>Netbios nameserver version 2.2.8a-SuSE started.</code><br /> <code>Copyright Andrew Tridgell and the Samba Team 1994-2002</code><br /> <code>[2004/02/25 12:51:03, 1] lib/debug.c:debug_message(258)</code><br /> <code>INFO: Debug class all level = 1 (pid 3587 from pid 3587)</code><br /> <code>[2004/02/25 12:51:03, 0] lib/util_sock.c:open_socket_in(804)</code><br /> <code>bind failed on port 137 socket_addr = 10.1.1.34.</code><br /> <code>Error = Cannot assign requested address</code><br /> <code>[2004/02/25 12:51:03, 0] nmbd/nmbd_subnetdb.c:make_subnet(139)</code><br /> <code>nmbd_subnetdb:make_subnet()</code><br /> <code>Failed to open nmb socket on interface 10.1.1.34 for port 137. Error was Cann</code><br /> <code>ot assign requested address</code><br /> <code>[2004/02/25 12:51:03, 0] nmbd/nmbd.c:main(873)</code><br /> <code>ERROR: Failed when creating subnet lists. Exiting.</code><br /> <code>------------------------------------------------------------------------------------</code><br /> <br /> <code>10.1.1.34 is the IP alias added by the debian vserver I tried to run. I thought that chbind was supposed to prevent vservers from seeing other IPs ? Is there a solution to this nmb problem ?</code><br /> <br /> <pre> Thanks a lot for any help, Schlomo</pre> <br /> ----- * Prev by Date: '''[[msg06307.html|Re: [Vserver] doesnt compile :( sparc64 - linux-2.6.3 + patch-2.6.3-vs0.09.diff]]''' * Next by Date: '''[[msg06309.html|[Vserver] vshelper works!]]''' * Previous by thread: '''[[msg06303.html|[Vserver] doesnt compile :( sparc64 - linux-2.6.3 + patch-2.6.3-vs0.09.diff]]''' * Next by thread: '''[[msg06314.html|Re: [Vserver] chroot - permission denied]]''' * Index(es): ** [[index.html#06308|'''Date''']] ** [[threads.html#06308|'''Thread''']]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information