[Pkg-shadow-devel] Bug#659878: cannot set terminal process group (-1): Inappropriate ioctl for device

Francois Gouget fgouget at free.fr
Sun Sep 2 10:05:17 UTC 2012


Nicolas François wrote:
> An option could be to keep the controlling terminal when su-ing to 
> root. The issue would be less visible in sux (probably used mostly to 
> gain root privileges), but even if the risk when su'ing to root is 
> lower

I almost exclusively use sux to get access to two other non-root 
accounts I normally use.


> Alternative on the sux side would be to create a terminal when an 
> interactive command is started (e.g. starting an xterm in sux should 
> work)

That would really suck. Besides the fact that the user may want to use 
any number of terminal emulators besides xterm, it would make it 
impossible to have two Gnome-Terminal tabs for two different accounts.

Plus the main issue is that currently "su -c" breaks the shell's job 
control (bug #663200). That's an su bug and no amount of hacking in sux 
can fix that.

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                      Computers are like airconditioners
                They stop working properly if you open WINDOWS


More information about the Pkg-shadow-devel mailing list