Permissions required for non-root user for installing bundle
For Azure MSDP-C, non-root user requires certain permissions to install the Recovery Readiness Bundle for Azure.
List of permissions:
Create file
/etc/sudoers.d/<username>with below text.For example as shown in below command for user1:
cat /etc/sudoers.d/user1
user1 ALL=(ALL) NOPASSWD:/bin/mkdir,/bin/cp,/bin/ls,/bin/chmod,/bin/touch,/bin/rm,/bin/mv,/usr/bin/tee,/bin/grep,/usr/sbin /grub2-mkconfig,/bin/sed,/usr/bin/lsinitrd,/usr/bin/dracut,/usr/bin/systemctl enable HostPreparation.service, /usr/bin/systemctl disable HostPreparation.service,/usr/bin/systemctl start HostPreparation.service,/usr/bin/systemctl stop HostPreparation.service Defaults:user1 !requiretty
Ensure that the home directory created for the non-root user is always present.