Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What are pseudo-tty devices? Is my /etc/securetty file contains any? Post 302475653 by Corona688 on Monday 29th of November 2010 11:57:53 AM
Old 11-29-2010
Quote:
Originally Posted by pinga123
Hi ,
I have searched wiki for pseudo tty devices but it was very complex for me to understand.
A pseudo-TTY is it's a virtual device that acts like a terminal -- that is to say, acts like a serial port plus all the frills UNIX has added to them over the years with a keyboard and screen attached. You get features and side-effects like you'd expect of a real terminal: It can be configured to produce SIGINT when someone writes ctrl-C into it, you can configure it to echo its input or not, etc, etc. But it's not a real terminal -- it's a purely software thing. There's no real keyboard or screen involved anymore.

This is used for things like ssh, where you want to log into a real terminal but of course are too far away to do so. It opens a pseudo-terminal instead and just sends everything along.

Software can tell the difference between something that's a terminal and something that's not. Password inputs read only from a real TTY or a pseudo-tty for instance.

Last edited by Corona688; 11-29-2010 at 01:31 PM..
 

10 More Discussions You Might Find Interesting

1. Programming

How to programm TTY devices under UNIX platform?

Dear Export, I want to begin an serial-communication application codes associated with TTY devices. But I don't know what key settings should be concerned after opening a TTY device file under UNIX plarform(SunOS 5.7)? Could you give me some adivce? Thanks! (8 Replies)
Discussion started by: WayneYang
8 Replies

2. UNIX for Dummies Questions & Answers

Pseudo TTy on Sco

I need to be able to set the terminal emulation type assigned to the ttyp. How do I go about doing so? Noob needing help. Thanks Rurki (1 Reply)
Discussion started by: Rurki
1 Replies

3. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

4. Solaris

what is /devices/pseudo/ ??

Hi all, what does this mean? if then <something> fi here is what i know.. it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop. However am not understand what lofi@0:means? also is there... (3 Replies)
Discussion started by: wrapster
3 Replies

5. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

6. AIX

Difference between tty and console devices ?

Hi, What is the diference between these two ? thanks Vilius (3 Replies)
Discussion started by: vilius
3 Replies

7. Shell Programming and Scripting

Auto Ftp pseudo random file

I have a script that generates a file which is my own incarnation of a date using the 'date' function (we'll call this script a). I would like that script to invoke my other script (script b) which contains my ftp info. Since I have yet to figure out a good way to use regular ftp (yes i can only... (6 Replies)
Discussion started by: DC Slick
6 Replies

8. Red Hat

etc/Securetty

Hey, Can someone help me with what the vcx and console entries in /etc/Securetty file are? I understand that tty is the terminal that we usually login to using Ctrl+Alt+Fx. Not sure of the vcx and console entries. (0 Replies)
Discussion started by: prithvirao17
0 Replies

9. Solaris

/devices/pseudo/md - detecting problems?

Got an informix DB that won't start because DB chunk is offline. Its a raw device. See below:- lrwxrwxrwx 1 root root 29 Feb 6 2013 /dev/DB -> /devices/pseudo/md@0:0,10,raw How do I tell what that refers to? I've checked metadb and metastat and cant see any issues? (2 Replies)
Discussion started by: psychocandy
2 Replies

10. Shell Programming and Scripting

Python: Redirecting to tty and reading from tty

In bash, you can do something like this: #!/bin/bash echo -n "What is your name? " > /dev/tty read thename < /dev/tty How can I do the same in python? I have a python script that has the following content: #!/usr/bin/python2.7 import getpass import sys import telnetlib import... (2 Replies)
Discussion started by: SkySmart
2 Replies
PTS(4)							     Linux Programmer's Manual							    PTS(4)

NAME
ptmx, pts - pseudo-terminal master and slave DESCRIPTION
The file /dev/ptmx is a character file with major number 5 and minor number 2, usually of mode 0666 and owner.group of root.root. It is used to create a pseudo-terminal master and slave pair. When a process opens /dev/ptmx, it gets a file descriptor for a pseudo-terminal master (PTM), and a pseudo-terminal slave (PTS) device is created in the /dev/pts directory. Each file descriptor obtained by opening /dev/ptmx is an independent PTM with its own associated PTS, whose path can be found by passing the descriptor to ptsname(3). Before opening the pseudo-terminal slave, you must pass the master's file descriptor to grantpt(3) and unlockpt(3). Once both the pseudo-terminal master and slave are open, the slave provides processes with an interface that is identical to that of a real terminal. Data written to the slave is presented on the master descriptor as input. Data written to the master is presented to the slave as input. In practice, pseudo-terminals are used for implementing terminal emulators such as xterm(1), in which data read from the pseudo-terminal master is interpreted by the application in the same way a real terminal would interpret the data, and for implementing remote-login pro- grams such as sshd(8), in which data read from the pseudo-terminal master is sent across the network to a client program that is connected to a terminal or terminal emulator. Pseudo-terminals can also be used to send input to programs that normally refuse to read input from pipes (such as su(1), and passwd(1)). FILES
/dev/ptmx, /dev/pts/* NOTES
The Linux support for the above (known as Unix98 pty naming) is done using the devpts file system, that should be mounted on /dev/pts. Before this Unix98 scheme, master ptys were called /dev/ptyp0, ... and slave ptys /dev/ttyp0, ... and one needed lots of preallocated device nodes. SEE ALSO
getpt(3), grantpt(3), ptsname(3), unlockpt(3), pty(7) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2002-10-09 PTS(4)
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy