Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
Search Forums:



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #8  
Old 03-02-2007
BOFH BOFH is offline Forum Advisor  
Registered User
 

Join Date: Feb 2005
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
You can stop telnet while the server's running.

1. Edit /etc/inetd.conf (vi /etc/inetd.conf)

2. Find the entry for telnet (/telnet[enter])

If there's a "#" in front of the entry then you're done. Otherwise continue:

3 Put put a hash mark in front of the line (i#[esc])

4. Save the file (:wq!)

5. Restart the inetd process (kill -HUP `ps -e | grep inet | awk '{print $1}'`) (the ones around the whole statemet after HUP are reverse ticks, the lower key where tilde (~) is on your PC keyboard. The ones in the awk section are single quotes.)

6. Test the connection (telnet localhost)

7. Profit!

Carl
Sponsored Links
    #9  
Old 03-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
disable telnet

thank you BOFH

before I exercise your command the un-commented line is
Telnet streams tcp6 nowait root /usr/sbin/in.telnetd %A in.telnetd
is this the line to comment out.

also when I did your inital entry to view the file it will not allow me to perform the edit.

Thanks
Sponsored Links
    #10  
Old 03-02-2007
BOFH BOFH is offline Forum Advisor  
Registered User
 

Join Date: Feb 2005
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by panzerkw
thank you BOFH

before I exercise your command the un-commented line is
Telnet streams tcp6 nowait root /usr/sbin/in.telnetd %A in.telnetd
is this the line to comment out.

also when I did your inital entry to view the file it will not allow me to perform the edit.

Thanks
That is the correct line to be commented out. You do need to be root in order to edit the file and to restart inetd.

Carl
    #11  
Old 03-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
telnet disable

BOFH, thank you

I am in as root. at the end of the file there are ~ lines down the left edge of the file. and i cannot make an entry,

any ideas

Thank you
Sponsored Links
    #12  
Old 03-02-2007
BOFH BOFH is offline Forum Advisor  
Registered User
 

Join Date: Feb 2005
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
Quote:
Originally Posted by panzerkw
BOFH, thank you

I am in as root. at the end of the file there are ~ lines down the left edge of the file. and i cannot make an entry,

any ideas

Thank you
The tilde's are fine. It just means you're at the end of the file. Find the telnet line ('/' to begin search and 'telnet' for what to search for. hit enter to jump to the line) and press the letter 'i' which means "insert". Then hit the hash key (#). That will insert the # in front of the telnet line. Hit escape to return to command mode. Then hit colon ":" and type wq! (which means "write, quit, force"). That will return you to your prompt.

Carl
Sponsored Links
    #13  
Old 03-02-2007
BOFH BOFH is offline Forum Advisor  
Registered User
 

Join Date: Feb 2005
Location: Longmont, CO
Posts: 411
Thanks: 1
Thanked 5 Times in 5 Posts
A little hitch in the database. Posting this so you know there was a reply

Carl
Sponsored Links
    #14  
Old 03-02-2007
Registered User
 

Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
disable telnet

Thank you BOFH
I performed your command and it all seemed to work

Afeter i did the kill -HUP `ps -e | grep inet | awk '{print $1}'` the prompt went back to > . is that the end of the process.

I exited out of the xterm screen and went back in and executed the vi command to see if the line was commented out and indeed it was.

If indeed this is the completion of the process, I greatly appreciate your kind help.
Sponsored Links
Closed Thread

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to disable RIP and enable EGP stringman Security 3 02-19-2008 06:31 PM
Disable/Enable HP print services SCO OS 5 sighbrrguy UNIX for Advanced & Expert Users 4 01-09-2008 11:33 AM
Enable & disable cronjob Raynon Shell Programming and Scripting 7 09-19-2007 06:24 AM
Disable and Enable Backspace or Ctrl^H in vi mobile01 UNIX for Advanced & Expert Users 5 11-24-2006 10:55 AM
Enable and disable ttyS0 josramon Linux 1 12-01-2003 10:58 PM



All times are GMT -4. The time now is 05:58 AM.