[ale] OT: how to reset root pw on os X
Warren Myers
volcimaster at gmail.com
Wed Sep 17 13:05:34 EDT 2008
alternatively, you can 'sudo su -'
WMM
2008/9/17 Daniel Kahn Gillmor <dkg at fifthhorseman.net>
> > Open a terminal and type `sudo su`
>
> It's a bad idea to get into the habit of typing "sudo su" -- this does
> not clear the current environment, change working directory, or
> anything like that. As such, it leaves the user as a superuser in a
> shell that is potentially dangerously misconfigured (e.g. a bad $PATH,
> etc).
>
> Modern versions of sudo (in Mac OS X from at least 10.3 on, and in
> GNU/Linux for years as well) have a -i flag to "simulate initial
> login".
>
> So use "sudo -i" instead of "sudo su", if your goal is to get a clean
> root shell.
>
> hth,
>
> --dkg
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
>
--
Warren Myers
http://warrenmyers.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080917/5e1dc9c8/attachment.html
More information about the Ale
mailing list