If your son is using Etcher, there is no way to prevent privilege escalation because Etcher always tries to escalate privileges when trying to write, even if it doesn't have to.
If he is using dd, you can simply provide user access to the device using a udev rule.
If you want to limit it to a specific SD card, first run the following command with the sdcard inserted:
udevadm info -a /dev/mmcblk0 | grep cid
and note down the value in quotes.
Now create the file /etc/udev/rules.d/50-mmc-uaccess.rules
with the following contents:
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk*", ATTRS{cid}=="[card's cid]", TAG+="uaccess"
Replace [card's cid] with the value you noted down.
If you want to provide access to every SD card, just omit the ATTRS...
part:
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk*", TAG+="uaccess"
Now you can dd
to it without sudo.
sudo
for such tasks. -- A simple method is to let your son boot into a live system from an Ubuntu live USB drive, where he can runsudo
without any password, only press the Enter key when asked for password. But he will also be able to overwrite your internal drive by mistake.