Nano editor suspended using Ctrl+Z does not resume properly while run in switch user (su) environment

Solution Verified - Updated -

Issue

  • Login to a RHEL5 server as any user

  • Switch to another user with su command

su - username

  • Now launch nano editor using -z option to enable suspend ability

nano -z filename

  • Hit Ctrl + Z to suspend the file
  • Type fg to return to the file
  • File is not displayed properly and unable to use any nano commands.

Environment

  • Red Hat Enterprise Linux 5
  • Nano
  • Switch User (su)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.