Yes.. But how would you send that to a vserver that was just created in
1 line?

I tried the following: 
 
[root@vps root]# vserver test exec "/bin/echo <pass> | /usr/bin/passwd
--stdin root"
ipv4root is now 216.88.130.99
New security context is 21
Can't execute /bin/echo <pass> | /usr/bin/passwd --stdin root (No such
file or directory)
[root@vps root]#


And got that result...   

Any idea's?

Rob.

-----Original Message-----
From: Herbert Poetzl [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 01, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [vserver] vserver creation from command line


On Wed, Jan 01, 2003 at 12:56:40AM -0800, Robert Rolfe wrote:
>    ok, so far i have figured out how to create a vserver from the
command
>    line on the main system without using the newvserver command.  The
>    only thing i have yet to figure out is how the newvserver command
sets
>    the root password for the new vserver...   can anyone shed some
light
>    on this subject?  any way to do this all in one command? eg
"vserver
>    blah exec passwd root <password>"??

passwd --stdin

or if you have an already crypted password

usermod -p "<crypted password>" root

best,
Herbert
 
>    Any help would be appriciated...
> 
> 
>    Thanks,
> 
>    Rob.

Reply via email to