Back to Blog
Mac open terminal as admin5/6/2023 Rob, I'd actually consider removing this hint, or amending it to say something like "sudo su ", which accomplishes the same thing, or any number of the other alternate other suggestions that use sudo. Encouraging people to use tools like sudo also encourages learning, and more responsible and wise use of the tools at our disposal. Having the root account enabled fundamentally exposes you to more exploit possibilities.Ĥ. "It's more convenient/quicker/etc to just use su" is NOT a valid excuse, and is totally untrue: if you really need a full root shell, "sudo su" or "sudo -s" gets you one!ģ. You REALLY CAN do ANYTHING with sudo, just as conveniently. Say whatever you will this is still a good practice.Ģ. Getting into the habit of not having root enabled discourages unnecessary uses of root (like logging in as root via the gui), where much harm can be done. Repeat: you do NOT need root enabled you do NOT need to be using 'su' by itself.ġ. Why do people insist on enabling and using root?Īnd for the lazy, if you really just refuse to learn any of sudo's capabilities, at a bare minimum, just use 'sudo su' - that right there gives you a root shell, where literally ANYTHING can be done, and is the exact functional equivalent of using 'su' and using root's password. You can execute any command as any other user as sudo. You can and should do EVERYTHING with sudo. (Yes, there are other enterprise/server/speciality environments where having root enabled for various reasons is appropriate and accepted I'm NOT talking about those here.) Root does NOT and should NOT, EVER, need to be enabled for 99.9% of all Mac OS X systems. Yet another hint that requires root to be enabled when, as has been pointed out by many others, sudo is what you want to be using!
0 Comments
Read More
Leave a Reply. |