A bit misleading on:
linuxcnc.org/docs/2.8/html/getting-start...th_preempt_rt_kernel
This isn't exactly true:
"Warning Do not enter a root password, if you do sudo is disabled and you won’t be able to complete the following steps."
Non of those steps
require sudo. They work just fine with a root password - just become root and leave out the sudo (or you might want to configure sudo so you still use it for GUI applications.)
Easy to set up - just make a file (replace "user" with your user name) /etc/sudoers.d/local with :
Code:
cat /etc/sudoers.d/local
# User privilege specification
root ALL=(ALL) ALL
user ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
Sudo confuses new Linux users - it was a way to give usually root like permissions to people with out giving them THE root password. Sudo was mostly for multiuser systems - or more typical today - an X-user that needs root while running GUI apps. ( There are GUI things that I use sudo for - like a GUI editor - or meld that might need root powers - most applications know how to drop excess privileges ).
But most often - I don't need to mess with sudo if I can just become root and work from a command-line editor.
If the main user has sudo power (he has root - simple as $sudo passwd ) the system is vulnerable if it is connected to a LAN that has internet connectivity. The bad guys do try to log in as root - but they also try every other name you can think of - 24/7 - better to have root behind a very long password or ssh-key - Windoze machines are the usual attack source - once infected with some click bait they will try the locks on every LAN host they can. (OT: long passwords matter - especially if you can remember them - use something like alongphraseisnice - but a bit longer - people don't remember symbols/caps/numbers and thus write them down - thus not secure). Some of the attacks coming out of windoze boxes only crash the Linux boxes (not good if you are running a job). One of the reasons to use more recent kernels. Really hard to explain just how good the bad guys have gotten at breaking in.
Hope this is helpful - I think some of the people here are fairly new to Liunx.. I've been running Linux firewalls/servers and my personal desktop from back in 1999-2000.