(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



sshd stty login


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Bela Lubkin <belal@caldera.com>
Subject: Re: Query re stty settings on physical TTY's
Date: Sat, 4 May 2002 12:47:05 GMT
References: <aaqh97$8d4$1@perki.connect.com.au> <20020502125947.R10046@mammoth.ca.caldera.com> <aasouu$n07$1@perki.connect.com.au> 

Stuart J. Browne wrote:

> "Bela Lubkin" <belal@caldera.com> wrote in message
> news:20020502125947.R10046@mammoth.ca.caldera.com...
> > Stuart J. Browne wrote:
> >
> > > I've got an 'annoyance' with the way the STTY settings are remembered
> > > between sessions (on a modem, attached to /dev/tty1A), even after the line
> > > has been dropped.



> > > ... Unfortunately, the 'rows 74 cols 132' doesn't un-set it's self

> > This was a bug with some releases of OpenServer and fixed in others.
> > However, my crystal ball and my Quantum Uncertainty Device are coming up
> > cloudy with regard to this behavior on No Specific Release of No
> > Specific Operating System.
> 
> *cringe* I can't beleive I did that.  Confirmed behaviour under
> OSR5.0.[456].
> 
> All with latest RS applied.

Well, John points out that this _is_ a bug with current releases... it
was fixed for the pty driver in rs506a (maybe 5.0.6), but not
generically.  The code that resets those values should be in the generic
tty driver, not in each hardware driver.

For the moment, the workaround
of putting `stty rows 0 columns 0` in /etc/profile & /etc/cshrc may
suffice.  Or may not -- I suspect that will have a negative effect on
network protocols such as telnet, which pass screen dimensions.  You
would need to figure out how to zero the settings only for non-network
logins.  Something like:

  case `tty` in
     /dev/ttyp[0-9]*) :;; # pty driver gets it right; don't override telnetd
         "not a tty") :;; # avoid stty error message if not a tty
                   *) stty rows 0 columns 0;;
  esac
     

>Bela<
 



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


LOD Communications, Inc.


/Bofcusm/1590.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm
       - Bela


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress