10-29-2001
Get telnetd to start a process other than login
I want to be able to get telnetd to start a program of my choice or one that I have written . . . or . . . write a daemon of my own to listen on a port other than 23 and when a connection arrives it should create a controlling tty/pty and then launch my program on the client side of the pty.
A client wants to be able to "telnet" to my box and have perl scripts and shell scripts do the authentication, not the unix login process.
OS is HP-UX 10.20 or 11
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dears,
I m using SCO V and running 3 different aplications (has different logins) constantly on the server console in 3 different screens.
I want to develop a script which can start the programms on booting the systems. OR If automatic login can be configured on different screens will help me... (1 Reply)
Discussion started by: skant
1 Replies
2. Programming
Hi all,
I like to know how can I get currenlty running process start time and date , I know only porcess id in solaris and hp-ux
and
what is command to get same using ps with switch.
Thanks
Naeem (1 Reply)
Discussion started by: naeem ahmad
1 Replies
3. Shell Programming and Scripting
Hello Unix Guru
I need help to write the shell script
My requirement is
i have to start exe in unix hosts ( 20 unix server) through shell script .
currently i have to login to all host
rlogin -l testadmin servername
/users/testadmin/bolt/
source boltsrc
./executor start
... (1 Reply)
Discussion started by: getdpg
1 Replies
4. Solaris
Hello all,
I've got a problem on a V240 running Solaris 9, the telnet daemon won't start. The error message I get is "telnetd: stdin is not a socket file descriptor." I've never seen this message before and I'm not exactly sure what it means. I know generally what stdin, sockets, and file... (4 Replies)
Discussion started by: ONEX
4 Replies
5. Shell Programming and Scripting
how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies
6. Solaris
Hi All,
Any ideas on how to start Solaris 10 x86 without the Graphical Desktop login? I'm just interested in having the console login (text based) when starting Solaris.
Thanks in advance,
Daniel (4 Replies)
Discussion started by: danielsf
4 Replies
7. Shell Programming and Scripting
Hi all,
I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this:
1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently.
2) So I loaded datafile A... (10 Replies)
Discussion started by: luna_soleil
10 Replies
8. UNIX for Dummies Questions & Answers
What I need to learn is how to use a script that launches background processes, and then kills those processes as needed.
The script successfully launches the script. But how do I check to see if the job exists before I kill it?
I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies
9. Ubuntu
Hi Team,
I am using DRBL environment on Ubuntu. When my machine starts some times it's not starting lxdm & nslcd service. Because of that i didn't get graphic mode & also not able to authenticate user as nslcd is also stops. I have to login as root and restart these two services, then i am able... (0 Replies)
Discussion started by: paragnehete
0 Replies
10. UNIX for Dummies Questions & Answers
Hello, i'm absolutely new to the whole Operating Systems thing. I am pretty much level 0.
My assignment is to "simulate the execution of a stream of processes by a computer system, one CPU, many terminals 12 disk drives, 30 public mailboxes.
The professor runs a series of inputs which is a... (1 Reply)
Discussion started by: JaneSkylar
1 Replies
telnetd(8) System Manager's Manual telnetd(8)
NAME
telnetd - The DARPA telnet protocol server
SYNOPSIS
telnetd [-debug [port]] [-D modifier ...]
FLAGS
Starts telnetd manually, rather than through inetd, on alternate TCP port number port (if specified). Prints out debugging information.
modifiers are: Prints information about negotiation of telnet options Same as options with additional processing information Displays the
data stream received by telnetd Displays data written to the pty Not yet implemented
DESCRIPTION
The telnetd daemon is a server that supports the DARPA (Defense Advanced Research Projects Agency) standard telnet virtual terminal proto-
col. telnetd is invoked by the Internet server (see inetd(8)) normally for requests to connect to the telnet port as indicated by the
/etc/services file (see services(4)). The -debug flag may be used, to start up telnetd manually. If started up this way, port may be
specified to run telnetd on an alternate TCP port number.
The -D options may be used for debugging purposes. This allows telnetd to print out debugging information to the connection, allowing the
user to see what telnetd is doing.
The telnetd daemon operates by allocating a pseudoterminal device (see pty(7)) for a client, then creating a login process that has the
slave side of the pseudoterminal as stdin, stdout, and stderr. telnetd manipulates the master side of the pseudo-terminal, implementing
the telnet protocol and passing characters between the remote client and the login process.
When a telnet session is started up, telnetd sends telnet options to the client side, indicating a willingness to do remote echo of charac-
ters, to suppress go ahead, to do remote flow control, and to receive terminal type information, terminal speed information, and window
size information from the remote client. If the remote client is willing, the remote terminal type is propagated in the environment of the
created login process. The pseudoterminal allocated to the client is configured to operate in cooked mode, and with XTABS and CRMOD
enabled (see tty(7)).
The telnetd daemon is willing to do: echo, binary, suppress go ahead, and timing mark. telnetd is willing to have the remote client do:
line mode, binary, terminal type, terminal speed, window size, toggle flow control, environment, X display location, and suppress go ahead.
The telnetd daemon never sends telnet go ahead commands.
Note that binary mode has no common interpretation except between similar operating systems (Unix compatible systems in this case).
Note also that the terminal type name received from the remote client is converted to lowercase.
The telnet command uses the default Type-of-Service value recommended by RFC1060, which is as follows: Low delay
You can configure this value by specifying it in the /etc/iptos file. For more information, see iptos(4).
By default, the telnetd daemon starts the login dialog using the login string specified in the message field of the /etc/gettydefs file.
If you want to use a customized banner, create an /etc/issue.net or /etc/issue file. The telnetd daemon reads the file that exists and
writes its contents over a new telnet connection prior to starting the login dialog. If both files exist, only the /etc/issue.net file is
used.
CAUTIONS
Some telnet commands are only partially implemented.
Because of bugs in the original 4.2BSD telnet(1), telnetd performs some dubious protocol exchanges to try to discover if the remote client
is, in fact, a 4.2BSD telnet(1).
FILES
Specifies the command path. Specifies the path name for the network issue identification file. Specifies the path name for the issue
identification file.
RELATED INFORMATION
Commands: telnet(1).
Files: iptos(4), issue(4), issue.net(4). delim off
telnetd(8)