-su: cannot set terminal process group (-1): Inappropriate ioctl for device

Bug #1323068 reported by Nicolas
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

*Not* happening in Ubuntu 12.04.4 LTS

ubuntu-precise-daily-amd64-server-20140522 (ami-c446aeac)

ubuntu@ip-10-0-0-30:~$ sudo su -
root@ip-10-0-0-30:~# su - ubuntu -
ubuntu@ip-10-0-0-30:~$

Happening in Ubuntu 14.04 LTS

ubuntu-trusty-14.04-amd64-server-20140416.1 (ami-018c9568)

ubuntu@build:~$ sudo su -
root@build:~# su - ubuntu -
-su: cannot set terminal process group (-1): Inappropriate ioctl for device
-su: no job control in this shell
ubuntu@build:~$

*******
test with zsh (ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/zsh)
build% sudo su -
root@build:~# su - ubuntu -
build%

Tags: bash
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash (Ubuntu):
status: New → Confirmed
Revision history for this message
Carl-Johan Sveningsson (cj-sveningsson) wrote :

Umm, confirmed on Ubuntu 14.04.1 LTS, recently updated from 12... what's this about and how can I fix it? Seems harmless so far though.

cj@rocksteady:~$ sudo su minecraft -
[sudo] password for cj:
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
minecraft@rocksteady:/mnt/data/home/cj$ script /dev/null
Script started, file is /dev/null
minecraft@rocksteady:/mnt/data/home/cj$ screen -dR

I realize I get some nutty memory leak before the other dude though. I'll investigate.

/CJ

Revision history for this message
Carl-Johan Sveningsson (cj-sveningsson) wrote :

Edit: that memory leak was due to https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186, which fixed (by removing libpam-smbpass) leaves the original ioctl error :-/

Revision history for this message
Gus Kyriakakis (gus-u) wrote :

This was working in Ubuntu 14.04 a few weeks ago. Did something change with bash recently, perhaps with the vulnerability that was announced? How can we fix this? I have a script that is broken now because of it.

Revision history for this message
Andrew Meyer (dmeyer-andrew) wrote :

Still an issue in 14.04. After enabling ldap-client su no longer works
andrew.meyer@icinga-master:~$ su scmeyer
Password:
bash: cannot set terminal process group (1338): Inappropriate ioctl for device
bash: no job control in this shell
andrew.meyer@icinga-master:~$

Revision history for this message
Andrew Meyer (dmeyer-andrew) wrote :

Disregard my comment, it was due to UID mismatching

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.