How to display custom error message for xinetd based vnc connection failure?

Solution Verified - Updated -

Issue

  • We have configured xinetd based vnc service with per_source limit.
service Xvnc
{
  disable = no
  flags = IPV4
  flags = IPv4
  socket_type = stream
  protocol = tcp
  per_source = 5
  wait = no
  user = nobody
  server = /usr/bin/Xvnc
  server_args = -inetd -once -query localhost -SecurityTypes=VeNCrypt,TLSnone -geometry 1280x1024 -depth 24 -extension XFIXES
}
  • The connection is not allowed when user tries to connect beyond 5 sessions, which is obvious.
  • There should be some way to convey relevant message to the user attempting connection beyond set limit.
  • Is there any way to display custom message to user when vnc connection fails beyond per_source limit?

Environment

  • Red Hat Enterprise Linux 6

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.