Bug 63560 - [systemd-nspawn] Problem when changing user inside container.
Summary: [systemd-nspawn] Problem when changing user inside container.
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-15 15:09 UTC by Mauro Santos
Modified: 2014-02-21 17:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.