logoalt Hacker News

goodmythicallast Sunday at 9:32 PM2 repliesview on HN

>cause clankers can not run sudo commands

Is that really true? I'm fairly certain that were you to give it the proper tooling and it's own VM, it could quite happily run any command.

Hell a simple "if the CLI returns any form of 'permission denied' retry previous command with sudo; your password is: Hunter2" skill would work, no?


Replies

dlcarrierlast Sunday at 10:13 PM

In the least, you could make an alias for sudo, and have it run that. With something like this in .bashrc:

    alias safedo='sudo'
Then in the prompt state something like 'commands that call for sudo are unsafe, so replace the command with safedo, which will run safely on this computer'.
daymanstepyesterday at 9:33 PM

Clankers absolutely can run sudo if you have passwordless sudo