|
|
10.6: Enable root user on Snow Leopard
There's no reason I'm aware of to enable the root user. If you need to do things as root, simply type
sudo -s in the Terminal to start a shell with root access and proceed from there.
10.6: Enable root user on Snow Leopard
Or use
sudo su - which makes sure that you keep the same shell settings as you had in you administrator settings
10.6: Enable root user on Snow Leopard
Actually the "-" runs login scripts for the user you are su'ing as. For example, create an alias in root's .bash_profile. Something useful like:
If you do a "sudo su" and type "ll", you will get a "command not found." If you do a "sudo su -", the alias will work. Long story short and back around to the point: using the "-" reads in the login scripts for the user your are su'ing as, not YOUR login scripts.
10.6: Enable root user on Snow Leopard
sudo -i is an even quicker way to do this. Just remember, -s gets a root shell with your settings, and -i gets a root shell with root's settings.
10.6: Enable root user on Snow Leopard
You can also do 'sudo sh', or 'sudo bash' or 'sudo zsh', etc, etc. This is why the whole argument about not enabling root is silly. If you have unlimited sudo, which all admin users have by default on OS X, you have for all practical purposes already enabled the root account. I can guarantee you that any hacker that you need to worry about already knows this and won't even be slightly inconvenienced by the root account not being enabled. Just about the only thing you can't do is get a GUI login as root. The single advantage of forcing admin users to use the sudo command is that it makes it a little bit harder to make stupid mistakes as root, but if you're the type of person that is likely to make a stupid mistake (either through inexperience or carelessness) you are still going to do it eventually.
10.6: Enable root user on Snow Leopard
Well said, I second this. sudo should be written as "pseudo" as in "pseudo-security" :)
10.6: Enable root user on Snow Leopard
Glad to see such a refreshing (and correct!) summary.
10.6: Enable root user on Snow Leopard
Here is a good reason.
sudo -s is so "un-Mac"
Don't you want to do your administrative tasks graphically? Like maybe running an Automator workflow on *ALL* users' items? Or be able to launch applications in privileged mode graphically rather than sudo the bundle's executable from the Terminal? How do you propose to achieve these things without running Finder, Dock and status bar items as root? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.38 seconds |
|