This looks like this upstream bug: 
https://github.com/util-linux/util-linux/issues/859
The reason it doesn't affect releases before plucky is likely that there was a 
switch from shadow to util-linux.

The limitation appears intentional.

To quote the manpage:
If one uses the command login, then the surrounding shell gets killed by 
vhangup(2) because it’s no longer the true owner of the tty. This can be 
avoided by using exec login in a top-level shell or xterm.


How is the environment which you are trying to run login from? sudo, ssh, tty, 
other?
Wrapping the command (sudo -i login) seems to work around that limitation.

** Bug watch added: github.com/util-linux/util-linux/issues #859
   https://github.com/util-linux/util-linux/issues/859

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115838

Title:
  login command just Hangup immediately

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2115838/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to