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.
$ 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
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.