Computing.Net > Forums > Linux > How to disable telnet from email user

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to disable telnet from email user

Reply to Message Icon

Name: Paul Jayavenra
Date: August 20, 2002 at 10:07:34 Pacific
Comment:

Hi

I am running Redhat 7.0 has my mail server.
Mail users can access the server by telnet.

How to disable the telnet from email users
They can only send & receive email

Pls help me

Thanks a lot in advance




Sponsored Link
Ads by Google

Response Number 1
Name: Danny
Date: August 20, 2002 at 10:56:40 Pacific
Reply:

edit /etc/passwd and replace the shell (/bin/bash) by something else ex: /dev/null

also, you may edit user's .bash_profile and add an "exit" at the bottom.



0

Response Number 2
Name: David Perry
Date: August 21, 2002 at 06:24:45 Pacific
Reply:

A suggestion from www.wu-ftpd.org is to have an executable shell that does not allow login like this:
#!/bin/sh
#
# ftponly shell
#
trap "/bin/echo Sorry; exit 0" 1 2 3 4 5 6 7 10 15
#
IFS=""
Admin=access@host.some.domain
System=`/usr/ucb/hostname`@`/usr/bin/domainname`
#
/bin/echo
/bin/echo "********************************************************************"
/bin/echo " You are NOT allowed interactive access to $System."
/bin/echo
/bin/echo " User accounts are restricted to ftp and web access."
/bin/echo
/bin/echo " Direct questions concerning this policy to $Admin."
/bin/echo "********************************************************************"
/bin/echo
#
# C'ya
#
exit 0


0

Response Number 3
Name: armin
Date: August 21, 2002 at 08:52:42 Pacific
Reply:

i would disable telnet completely, since it is an insecure service


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to disable telnet from email user

How to disable DNS lookup in sendmail www.computing.net/answers/linux/how-to-disable-dns-lookup-in-sendmail/39.html

LINUX -how to disable onboard video www.computing.net/answers/linux/linux-how-to-disable-onboard-video/2592.html

how to disable ctl+alt+del www.computing.net/answers/linux/how-to-disable-ctlaltdel-/6160.html