[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: telnet

> > > > how can i do to avoid that an user can make telnet to may host? (but I
> > > > must can do ftp,irc,http,etc)...I only want prohibit telnet.
> > > 
> > > Change shell for the users you want to forbid telnetting to /bin/true
> > > and add the line "/bin/true" into /etc/shells file.
> > > 
> > 
> > true?....what's true?  and simple word?
> > 
> > sorry, but i don't understand you well.
> Well, if you noticed, you've got a /bin/true binary the whole purporse
> of which is to return "true"  (zero exit code).

Yeah that's true. And, you could just as well have used /bin/false :).

But, a better answer to his question of disabling telnet completely
is just removing the telnet line from /etc/inetd.conf. This will
really make all telnet connections impossible (I prefere the /bin/true
option myself, but he seemed to ask for disabling telnet altogether).
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: