Run preseed commands as specific user / switching users
- by pduersteler
Beside the usual setup where I create a normal user foo, I want to run a few
d-i preseed/late_command commands as that foo user.
My initial thought was to simply call those commands with sudo, e.g:
d-i preseed/late_command in-target echo "<pwd>" | sudo -Si <command>.
This works for some sort of commands. However the problem is that…