detect sudo needs and switch connections for any use-case

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Merge pull request #65 from alfredodeza/6104

detect sudo needs and switch connections for any use-case