Создаем юзверя в 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

Leave a comment

Comments 2

tpuctah May 17 2017, 07:55:51 UTC
ничосе

Reply


tpuctah May 17 2017, 07:56:02 UTC
ничосе

Reply


Leave a comment

Up