

11·
6 days agoAnother way to do this is sudo su -c 'this is my command
’
E.g. change a fan setting on a ThinkPad with:
sudo su -c 'echo "level full-speed" > /proc/acpi/ibm/fan'
So to run a shell you could do all sorts of tricks like:
sudo su -c '/bin/bash -i'
and such.
Never know when it comes in handy.
EDIT: Damn, downvoted, any reason why? It works on my machine with a locked root user or one without a PW and I made sure to test it before posting, but I’d love an explanation of why it wouldn’t work if that’s the reason for the downvote. Was just hoping it would be useful to somebody :/
Go lick the boot more. There’s more to the world than some fucking computers. Go download yourself some grass and
touch
it.I will in fact, fuck the GPL, I will make sweet passionate love to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. https://fsf.org/.