Создаем юзверя в img образе

May 04, 2017 15:07

guestfish --rw -i -a xenial-server-cloudimg-amd64-disk1.img
modify /etc/passwd (add the user directly to file)
create the home dir for the user(specified in file above)
command "bash -c 'echo username:password | chpasswd'"

virtualization, linux, useradd

Previous post Next post
Up