Hi Greg,<br><br>I have one more doubt regarding lxc containers.<br><br>command::<br> lxc-execute -n ubuntu_user -f /home/nishant/ubuntu.conf  -- useradd -c "base_system" -m -p base_system base<br><br>Will this create a new user in base container or on my host system?<br>
I am asking this question because when I execute this command directory named base_system is created on my host system, but I want it to create it on my base container because I want to to smbtorture tests on many containers.<br>
<br>How should I do this?<br>Please help me ASAP.<br><br>Thanks and Regards,<br>Nishant Mungse<br><br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 4:44 PM, nishant mungse <span dir="ltr"><<a href="mailto:nishantmungse@gmail.com">nishantmungse@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Greg,<br><br>Thanks 4 reply. It is working now. Thanks <br><br>Regards,<span class="HOEnZb"><font color="#888888"><br>
Nishant Mungse</font></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 3:41 PM, Greg Kurz <span dir="ltr"><<a href="mailto:gkurz@fr.ibm.com" target="_blank">gkurz@fr.ibm.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On Thu, 2011-11-03 at 11:25 +0530, nishant mungse wrote:<br>
> Hi,<br>
><br>
> I am using lxc-execute command and in place of command to execute i am<br>
> using bin/smbtorture //nishant/ubuntu -Uubuntu_user%passwd raw.write<br>
> test.<br>
><br>
> command::<br>
> lxc-execute -n ubuntu_user<br>
> -f /home/nishant/ubuntu.conf  /home/nishant/Desktop/samba-4.0.0alpha15/bin/smbtorture //localhost/ubuntu  -Uubuntu_user%npasswd raw.write<br>
><br>
> o/p<br>
> lxc-execute: invalid option -- 'U'<br>
><br>
><br>
> It is not recognizing this -U option which is required in case of<br>
> smbtorture.<br>
><br>
> Can anyone plz tell me how to execute such command on containers?<br>
<br>
<br>
</div></div>You need to insert -- before the command to execute so that lxc doesn't<br>
try to parse the remaining command line arguments:<br>
<br>
lxc-execute -n ubuntu_user -f /home/nishant/ubuntu.conf -- smbtorture<br>
<br>
Cheers.<br>
<span><font color="#888888"><br>
--<br>
Gregory Kurz                                     <a href="mailto:gkurz@fr.ibm.com" target="_blank">gkurz@fr.ibm.com</a><br>
Software Engineer @ IBM/Meiosys                  <a href="http://www.ibm.com" target="_blank">http://www.ibm.com</a><br>
Tel <a href="tel:%2B33%20%280%29534%20638%20479" value="+33534638479" target="_blank">+33 (0)534 638 479</a>                           Fax <a href="tel:%2B33%20%280%29561%20400%20420" value="+33561400420" target="_blank">+33 (0)561 400 420</a><br>



<br>
"Anarchy is about taking complete responsibility for yourself."<br>
        Alan Moore.<br>
<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>