Hi all, just a quick one that I’m sure is simple.
I can use this to update the suoders file:
echo myuser ALL=(ALL) ALL >> /etc/sudoers
How do I echo the exact command into another file
echo “echo myuser ALL=(ALL) ALL >> /etc/sudoers” >> MOTD
I have tried escaping characters but I am struggling! Help would be very much appreciated. For what it’s worth, would like to add above into a MOTD for priv escalation.