Can't su anymore
Jared Earle
jearle at gmail.com
Tue Feb 26 02:05:21 PST 2008
On Tue, Feb 26, 2008 at 5:23 AM, Dan Shoop <shoop at iwiring.net> wrote:
>
> On Feb 25, 2008, at 6:51 PM, LuKreme wrote:
> > On 25-Feb-2008, at 14:08, Don Montalvo wrote:
> >> "Jared Earle" <jearle at gmail.com> wrote:
> >>> Does "sudo su -" work?
> >>
> >> I use "sudo -s"
> >
> > But that is not the same thing as sudo su -
>
> Not always, but normally so, yes. If root had some shell different
> than the invoker's then it could be different.
Apart from $HOME and .bashrc/.env are vastly different, for instance.
As "sudo -s", type "cd && pwd" and see where you are. Now try this
after "sudo su -". Your environments are, of course, completely
different. I personally use "sudo -s" more than "sudo su -" but I do
so precisely because I don't want to have root's environment. I
presume the OP was asking to get su working precisely because he does
want root's env.
--
Jared Earle :: There is no SPORK
jearle at gmail.com :: http://www.23x.net
The Spodcast :: http://spodcast.org
More information about the MacOSX-admin
mailing list