Yes, I did read this answer: https://apple.stackexchange.com/questions/192365/is-it-ok-to-use-the-root-user-as-a-normal-user/192422#192422
But I still fail to understand the reasoning behind this advice, as long as we are talking about a single user home PC (for a multi-user system the advice seems obvious to me: a maliocious or compromised user must not be allowed to adversely affect other users)
As far as I'm aware the advice against running root all the time falls in two categories:\
1. Security: If I get compromised the attacker will do less damage if they're not able to gain root privileges
Will they? Even without root they can: Encrypt my data and demanding ransom; connect my computer to a botnet and mount a ddos attack against a legitimate site; connect my computer to a botnet and use it to ditribute illegal materials, prompting Men in Black to knock my doors; unless im mistaken, set up a keylogger; steal my browser profile and gain access to my email account I'm logged to at the moment.
Might I ask in what ways can they screw me up that actually requires them to gain root?
Because it seems it pretty much does not matter if I'm root or not...
Obligatory xkcd: https://xkcd.com/1200/
2. Accidental mistakes such as issuing rm -rf
against a system critical directory
Once again: Without root I may not be able to accidentally remove or corrupt /etc
or /bin
or /usr
, but I'm still able to accidentally remove or corrupt my data in /home
. The latter is arguably worse than the former: the former can be fixed by OS reinstallation, but the latter requires me to have recent backups, or else I cannot recover.
So, with root or without root, I still have to pay utmost care when I issue dangerous commands such as rm
.
In light of the above, may I ask why is it recommended to not use root for everyday use?
chown
as normal user: error message. Wrongchown
as root: broken system.rm
on the wrong directory as normal user: error message or facepalm. As root: where are the backups?