Creating a user called 'root'
Posted
by
pnp
on Ask Ubuntu
See other posts from Ask Ubuntu
or by pnp
Published on 2013-06-29T07:38:46Z
Indexed on
2013/06/29
10:29 UTC
Read the original article
Hit count: 235
I am creating Virtual Machines using the ubuntu-vm-builder.
The syntax goes something like this:
ubuntu-vm-builder kvm precise \
--domain newvm \
--dest newvm \
--arch i386 \
--hostname hostnameformyvm \
--mem 256 \
--user john \
--pass doe \
--ip 192.168.0.12 \
--mask 255.255.255.0 \
--net 192.168.0.0 \
--bcast 192.168.0.255 \
--gw 192.168.0.1 \
--dns 192.168.0.1 \
--mirror http://archive.localubuntumirror.net/ubuntu \
--components main,universe \
--addpkg acpid \
--addpkg vim \
--addpkg openssh-server \
--addpkg avahi-daemon \
--libvirt qemu:///system ;
I need to enable the 'root' user account after creating each of my VMs (and supply a password for it).
I was just wondering whether I can take this short-cut of supplying the username (--user
) as root
in this command itself. If I supply username as root
to create my VMs, am I creating/enabling the root user, or just creating a user named as root?
p.s.: any better ways to achieve my task are also welcome. But I don't want to manually meddle with each VM after its creation
© Ask Ubuntu or respective owner