On 21/2/25 09:40, Tom Dial wrote:
The TL;DR here is that for maintaining personal workstations and servers it makes more sense to log in as root, do the work as required, then log out. Or there is "sudo -i" to get an interactive root shell and avoid prepending every command with "sudo."


As a matter of practicality, Large Language Models like chapgpt and claude almost always give commands for you to enter to enter prefixed by sudo.

It doesn't matter where you are root or not. for root sudo is (probably?) ignored.

Personally, I often su - to root  but also use sudo (after setting the nopassword option in sudoers )

%sudo    ALL=(ALL:ALL) NOPASSWD: ALL

For those of us who don't live and breathe bash, the LLMs are very useful. Not having to ever enter a sudo password is also very useful.

Reply via email to