On Raspbian, the Debian distro aimed at RPi, I end up getting the following error:
$ sudo su -l root -c /bin/bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
... however, if I change this to sudo su -, everything works fine. Any ideas what's wrong in the above command line? The main issue here is that the terminal is borked after this command ...
I found this bug report but it looks like there is no clonclusion.
System info
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
$ dpkg -l |grep sudo
ii libgksu2-0 2.0.13~pre1-6 armhf library providing su and sudo functionality
ii sudo 1.8.5p2-1 armhf Provide limited super user privileges to specific users
NOTE
The reason I am using -c /bin/bash is that it actually looks more like -c /bin/bash --rcfile /path/to/rcfile ... and therefore is different from a mere sudo -i or sudo su - and so on ...
The reason I gave the command line as I did above in my question was that it is the minimal example that reproduces the problem.

sudo su -l root -c /bin/bash? That is an extremely convoluted way of getting a root shell... – Chris Down Feb 23 at 5:57-l root -c /bin/bashstuff? Why not just do thissudo su -? If the problem is that root's default shell is not bash, then why not change root's default shell to bash? – Red Cricket Feb 23 at 6:45--rcfilepast the/bin/bash. But they aren't relevant to reproduce the issue. What I produced here is a minimal working example to reproduce the bug. Without the-cpart and everything following, this error doesn't occur. This is why this "convoluted" way ... – 0xC0000022L Feb 23 at 16:54su user -and I couldn't find a way around it. To make things worse, a^Cin the console will terminate it! If I open another bash from it and hit^C, the console will randomly alternate between the root and the user console, so typing a command will send some letters to one console an other letters to the other. WTF? I can't find any work-arounds for this problem. (edit: Debian Wheezy, LXTerminal, user doing thesuis root) – f.ardelian May 12 at 22:23