By default azure downloads and runs installation script in /var/lib/waagent/custom-script/download/0/ under root.
By default root doesn't have a password, i.e. you can run sudo any-command without password.
Should we move all necessary files to /home/$ADMIN_USERNAME and change files ownership to $ADMIN_USERNAME?
Should we make a password for sudo and ask it in cloud UI?
By default azure downloads and runs installation script in
/var/lib/waagent/custom-script/download/0/
underroot
. By defaultroot
doesn't have a password, i.e. you can runsudo any-command
without password./home/$ADMIN_USERNAME
and change files ownership to$ADMIN_USERNAME
?