terminal disappear

While working inside a teminal emulator (e.g. xterm), I issued the login command, trying to login using different user-id.  Press enter, my terminal disappears.  Why ???
Is the login command not working ??
jazzmeenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
No, the login process isn't inteded to be used in that way. If you want to become a different user you get there by executing "su some-user" and supply that users password. If you need to be that user with their login environment, use "su - some-user".
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bernardhCommented:
the above answer suggests how to use the login command.

some process probably triggered that incident. say your xterm lost connection to the Xserver.

the login command is not normally entered on the command line unless you want to initiate a session on the system for the user specified by the User parameter.

In order to preserve the integrity of the system, only one session
at a time is allowed to be logged in to a port. This means that the
login command entered from the shell prompt cannot succeed, as both
the original session and the new login session would be on the same
port. However, the exec login command succeeds because a new shell
replaces the current one. The login command is typically a built-in
shell command, causing the shell to replace itself.

0
EatEmAndSmileCommented:
Login is intended only for real logins. To switch to another user you go by the "switch user" command, su.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.