Запустите Bash Script Linux с паролем sudo
echo <password> | sudo -S <command>
Merwanski
echo <password> | sudo -S <command>