Red Hat Bugzilla – Bug 495192
RHEL5: login command does not allow for switching users
Last modified: 2011-01-13 18:44:56 EST
+++ This bug was initially created as a clone of Bug #489031 +++
Description of problem: The manpage for the login command states:
"login is used when signing onto a system. It can also be used to switch from one user to another at any time (most modern shells have support for this feature built into them, however)."
However it appears that switching-users with login does not work properly. The issue seems to vary from not accepting keyboard input when run in an ssh session, to immediately returning to the prompt when run as a regular user, to failing with 'Login Incorrect' when trying to log in as root. It only seems to work sometimes when logged in locally, running as root, and logging in as a regular user.
Since the shells have built in support for switching users with su can we maybe remove the note in the manpage about being able to switch users? Some customers of ours have been disappointed when the functionality did not match what was documented.
Version-Release number of selected component (if applicable): util-linux-2.12a-20.el4
--- Additional comment from firstname.lastname@example.org on 2009-03-09 04:48:57 EDT ---
You're right. The comment in the man page is nonsense. login(1) is not usable for users switching at all (see BUGS section in the same man page).
Thanks. Fixed in upstream code.
Comment #4 => VERIFIED
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.