From: Robert Rolfe (rrolfe_at_genpac.com)
Date: Wed 01 Jan 2003 - 17:27:54 GMT
Yes.. But how would you send that to a vserver that was just created in
1 line?
I tried the following:
[root_at_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_at_vps root]#
And got that result...
Any idea's?
Rob.
-----Original Message-----
From: Herbert Poetzl [mailto:herbert_at_13thfloor.at]
Sent: Wednesday, January 01, 2003 8:09 AM
To: vserver_at_solucorp.qc.ca
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.