Hacker News new | ask | show | jobs
by goodmythical 2 days ago
>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?

2 comments

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'.
Clankers absolutely can run sudo if you have passwordless sudo