Bug 63560

Summary: [systemd-nspawn] Problem when changing user inside container.
Product: systemd Reporter: Mauro Santos <registo.mailling>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: tuksgig
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Mauro Santos 2013-04-15 15:09:25 UTC
I'm using Arch Linux as a host with systemd 201 and I'm trying to use a directory with a CentOS 5 install with 'systemd-nspawn -D <centos_dir>'.

Initially I get a root shell and everything works as expected, however when I try to change user with 'su - <username>' I get a warning that there is no job control for the current shell.

If <username> uses bash then the warning is:
"-bash: no job control in this shell"

If <username> uses tcsh (which I intend to use) the warning is:
"Warning: no access to tty (Inappropriate ioctl for device).
Thus no job control in this shell."

When using tcsh this also breaks shell completion.
Comment 1 Lennart Poettering 2014-02-21 17:27:19 UTC
THis should work correctly on nspawn from 209.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.