Disable telnet for a particular user


 
Thread Tools Search this Thread
Operating Systems Solaris Disable telnet for a particular user
# 8  
Old 06-02-2010
This is interesting but this useraccount can come from multiple IPs. Can I user forbiddenuser@ALL instead so as to capture all host IPs?

in.telnetd : forbiddenuser@hostIP

*** I actually tried
in.telnetd : forbiddenuser@myhost but it still accepts telnet sessions with forbiddenuser....

Last edited by boshyd; 06-02-2010 at 12:22 PM.. Reason: Update
# 9  
Old 06-02-2010
Probably you also need to restart the inetd after the changes?
Before doing that, try
Code:
kill -HUP pid-of-inetd

This should reread the appropriate configuration files.
# 10  
Old 06-02-2010
I tried kill -HUP and also reset the inetd...but doesnt help, I dont think this is the problem though.

I am still able to telnet from my host to server so hosts.deny is not working as expected.

bash-3.1# cat /etc/hosts.deny
in.telnetd : forbiddenuser@myhostname
# 11  
Old 06-03-2010
Quote:
Originally Posted by boshyd
This is interesting but this useraccount can come from multiple IPs. Can I user forbiddenuser@ALL instead so as to capture all host IPs?

in.telnetd : forbiddenuser@hostIP

*** I actually tried
in.telnetd : forbiddenuser@myhost but it still accepts telnet sessions with forbiddenuser....
is tcp_wrapper enable for (telnet) your system?

Code:
$ inetadm -l telnet | grep tcp_wrappers

output says enable or true ?
# 12  
Old 06-03-2010
# inetadm -l telnet | grep tcp_wrappers
inetadm: not found
# 13  
Old 06-03-2010
Quote:
Originally Posted by boshyd
# inetadm -l telnet | grep tcp_wrappers
inetadm: not found
maybe your system older from solaris 10

then we let lookup for inetd prop
allright try this

Code:
 
svcprop -p defaults inetd

# 14  
Old 06-03-2010
Its Solaris 8 as I mentioned in the first post.

# svcprop -p defaults inetd
svcprop: not found

Thanks to everyone helping me out.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Not able to disable finger & telnet command in Solaris 8

Hi I need to disable finger & telnet command in solaris 8 I have put the # infront of finger and telnet line in /etc/inetd.conf file. Further I have run the below command kill -1 <process id of inetd > But when I am running finger command it is till giving information for remote machine... (8 Replies)
Discussion started by: amity
8 Replies

2. Solaris

Disable Inactive User in Solaris 11

Goal: To disable a Solaris user, after that user was inactive for X days. My understanding for linux was that there was no systematic way to disable inactive users, therefore we had to set a password expiration via /etc/default/passwd, MaxWeeks; then in /etc/default/useradd (/etc/shadow), the... (1 Reply)
Discussion started by: Drasavokian
1 Replies

3. AIX

Allow telnet in AIX from specific IP adds, but disable for everyone else

I need to change the security on our AIX servers and disable telnet from all but certain IP addresses. I have hashed the telnet line in /etc/inetd.conf and added filter rules for those IP adds to allow access on port 23, but this didn't work. Does anyone have any ideas? Thanks. (2 Replies)
Discussion started by: Alps
2 Replies

4. Solaris

SSH enable, Telnet disable ...

Hi... How do I enable SSH and disable telnet.. Also - is there anything special I need to do to ensure that a new user can use ssh and su but not telnet? Adel (15 Replies)
Discussion started by: ArabOracle.com
15 Replies

5. AIX

How to disable user login infor?

If user login and don't do anything in 15 mins, the user is kicked off from the server. how to disable it? (5 Replies)
Discussion started by: rainbow_bean
5 Replies

6. Solaris

disable telnet on the startup

Hi All, I want to disable telnet on the startup of solaris 8-10 but still wants for a standby purposes. In case I need to troubleshoot ssh, I can connect thru telnet. Most solution on the internet is to permanently removed it. Best Regards, itik (5 Replies)
Discussion started by: itik
5 Replies

7. Solaris

Disable telnet timeout

Hi, Can someone help me how I can disable telnet timeout? I'm connecting remotely to some machines and after some time my telnet connection was closed. How can I disable this so that I'm always connected to those machines? Thanks! (2 Replies)
Discussion started by: ayhanne
2 Replies

8. Solaris

disable telnet on Solaris

All - would you please some one help me to disable telnet on Solaris? /etc/inetd.conf Thanks :confused: (11 Replies)
Discussion started by: March_2007
11 Replies

9. HP-UX

Temporarily Disable User Account

I want to temporarily disable a user account on HP-UX at the start of a script and renable the account at the end of the script. What would be the best method on HP-UX to temporarily disable a user account? I know of the passwd -l option that will lock the account, but I do not see a flag for... (4 Replies)
Discussion started by: scotbuff
4 Replies

10. AIX

How to disable cd to other folder for a user

How to disable user for cd to some another folders other than his folders. AIX 5L 5.2 Thanks Dilip. (1 Reply)
Discussion started by: Dilippatel
1 Replies
Login or Register to Ask a Question