ssh -X and sudo: permission mayhem
Derek Broughton
news at pointerstop.ca
Thu Sep 25 12:59:52 UTC 2008
Dexter Filmore wrote:
> Two machines, alice and bob
>
> From alice ssh'ed into bob with
>
> $ ssh -X user at bob
> then *on* bob ran
>
> $ sudo bash
> to get a root prompt.
...
> Why?
OK, I'm really weak on the whole concept of ssh and X, but it looks like
that "sudo bash" command. Don't do that :-(
"sudo -i" gives you a root _login_ shell. "sudo bash" (or "sudo -s") gives
you root permissions but all of your environment is set for "bob". This
invariably causes problems - and mostly with X apps.
--
derek
More information about the kubuntu-users
mailing list