Last things first:Just adding "sudo " in front of a shell snippet that should be run as root won't work. For example think about why "sudo cat /etc/motd > /root/motd" fails but running "cat /etc/motd > /root/motd" as root works?
May I solve your riddle in a way:
Code:
sudo cat /etc/motd > sudo /root/motd
As LiveUSB has no 'user' at all and everything is performed there under "cut" root authority I was able to run the command with simple '$' prefix. That is why I got so confused performing Wiki directions strictly.
Statistics: Posted by nikobit — 2024-04-08 09:30