|
|
|
10.5: Enable the root user
Not a good idea. Even in the unix/linux world is rarely a good idea to log in as root when you don't have to. Many of the linux admin I know are using "sudo su -" to elevate to root. In the Mac world, it's rarely, if ever, required to actually be the root user.
In a multi user environment, using sudo is logged. Logging is as root is logged, but you don't know who logged in. The simplest way to to elevate your privileges is to use the sudo -s command. This will give an admin use a root shell. Yes, not all the ENV vars are set as if you logged in a root, but most people, even a seasons system admin, will need that (or even know what the ramifications are). Why not enable root? If you leave root disabled you don't have to worry about a hacker trying to ssh or log into your machine as root. Simply knowing the name of a privileged user is half the battle for a hacker. Basically, there is no good reason to enable root and I challenge anyone to give me a reason where logging is an root is needed (as opposed to using sudo -s). Even if you did need to actually be the root user, you can with sudo su - which will even give you root's ENV.
10.5: Enable the root user
I'll accept your challenge... I have an empty admin password and 10.5 will not allow me to use sudo with an empty password, so therefore using the root account is the only way I can do administrative tasks!
Please don't lecture me about empty passwords. See my thread here for my reasons... http://forums.macosxhints.com/showthread.php?p=419428&posted=1#post419428
10.5: Enable the root user
Oh, I know this is massively past now, but I spend all day working in SSH onto dozens of customer machines, and we make extensive use of the root user.
Why? The user that our software runs under (and which we log into in order to avoid permissions headaches) is not in /etc/sudoers. It's not insane to require an extra - different - password to authenticate for root access. You might argue that it /is/ insane, if you're being this paranoid about security, to allow the user which is most likely to be exploited to be in /etc/sudoers. There's good reasons why even unix admins use root instead of sudo, and while it's entirely appropriate to warn the majority of Mac OS X users to not enable root this attitude that anyone who does is a moron and will instantly be compromised is stupid and wrong. |
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,502 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.12 seconds |
|