Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.6: Enable root user on Snow Leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Enable root user on Snow Leopard
Authored by: leamanc on Sep 28, '09 09:14:15AM

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:

alias ll='ls -l'

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.

[ Reply to This | # ]