|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jay D. Dyson (jdyson
TREACHERY.NET)Date: Wed Feb 14 2001 - 01:08:41 CST
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 14 Feb 2001, heh wrote:
> i have one question: how can you bind a shell to a specified port using
> /etc/inetd.conf ? i tried many ways to do it but i couldn't find out
> how...
sasumata$ man sh
<snip>
-i If the -i flag is present or if the shell input
and output are attached to a terminal, this shell
is interactive. In this case TERMINATE is ignored
(so that kill 0 does not kill an interactive
shell) and INTERRUPT is caught and ignored (so
that wait is interruptible). In all cases, QUIT
is ignored by the shell.
sasumata$ man inetd.conf
<snip - see for yourself - but the long and short of it is...>
9999 stream tcp nowait root /bin/sh sh -i
Ain't much to it. Knock yourself out.
- -Jay
( ______
)) .-- "There's always time for a good cup of coffee" --. >===<--.
C|~~| (>------- Jay D. Dyson -- jdyson
treachery.net -------<) | = |-'
`--' `------ Nobody but us in here. Nobody but us. ------' `-----'
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: See http://www.treachery.net/~jdyson/ for current keys.
iQCVAwUBOoog7dCClfiU/BIVAQFDywP/XAxRyJOIaxq/vWFdlxk4iDL02TnQHZIb
iS+amP2x0y+4eHoOYyoS3B8s/22LDzTRXYhyLDlMPDQYFg6fQ7S1BN/jjw3EJsBI
dN+VxHZIA9+6ITAny3l57b/0R3kHuSR930fi5BjnS4jx4BXmOwLsZoGmISUl0S/7
aRU98nmWQ+w=
=y4aX
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]