disabling telnet login for root only


 
Thread Tools Search this Thread
Operating Systems AIX disabling telnet login for root only
# 1  
Old 08-20-2008
disabling telnet login for root only

Hi,

I want to disable telnet login for root only so that other users can telnet?

Regards,
Manoj
# 2  
Old 08-20-2008
The easiest, portable way is to use the tcpd/tcp_wrappers library by Wietse Venema. With this, /etc/services does not contain the telnetd program directly, but a line that invokes the program "tcpd" which in turn checks the files /etc/hosts.allow and /etc/hosts.deny. In these files, you can set policies however you desire (per process, per user, per source host).

Do a man on hosts_access (5).
# 3  
Old 08-20-2008
Or add ssh and drop telnet, the ssh config allows the blocking of root access.
# 4  
Old 08-20-2008
I'll just add that ssh is installed in Solaris version 7 or 8 and greater, but it's best if you get the latest version, since older versions have known exploits.
# 5  
Old 08-20-2008
i think this will help you,
this is /etc/hosts.equiv file
use the highlighted one,
like, enter this line at the end...

hostname -root

try this entry for root.

thanks
# 6  
Old 08-20-2008
Do you want to disable the telnet login only or remote login in general? If the latter is the case use the "chuser" command to revoke the "rlogin" right for root You can also revoke the "login" right to disable root login via a console. See the manpage for "chuser" for the details. Revoking both rights will still retain the possiblity to log on as user and use "su" to become root. It only prevents logging in as root.

chuser modifies the file /etc/security/login but it is better to use the system commands instead of modifying the file directly. Therefore use "chuser" instead of editing the file.

I hope this helps.

bakunin

Last edited by bakunin; 08-22-2008 at 05:32 AM..
# 7  
Old 08-21-2008
Quote:
Originally Posted by honeym210
i think this will help you,
this is /etc/hosts.equiv file
use the highlighted one,
like, enter this line at the end...

hostname -root

try this entry for root.

thanks
This is incorrect. This applies to rsh/rlogin. It's safer to remove /etc/hosts.equiv.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Disabling CBC Cipher mode causes login problems

Hi, As part of the security hardening activity in our team, we have to disable CBC mode cipher encryption, and enable CTR or GCM cipher mode encryption. To do this, in sshd_config I comment out these lines : Ciphers aes128-cbc,blowfish-cbc,3des-cbc MACS hmac-sha1,hmac-md5 and add... (9 Replies)
Discussion started by: anaigini45
9 Replies

2. OS X (Apple)

Script Implementation for Disabling Re-Opening Previous Login

Ok guys, I'm just getting back to this amongst several other projects, but I thought I'd re-address it. I'm creating the script to disable windows from the previous login under 10.7. In order to do this it seems I need to create the same script for applications that launch and create the... (6 Replies)
Discussion started by: unimachead
6 Replies

3. UNIX for Dummies Questions & Answers

etc/ftpd/ftpusers & philosophy of disabling root

we don't have root in our /etc/ftpd/ftpusers and we are getting some pushback from the external auditors about this - specifically as a security risk if a "sniffer" were to catch roots password at the ftp. What do most shops do - disable ftp for root? What do you do to get things to the... (3 Replies)
Discussion started by: LisaS
3 Replies

4. Solaris

Am not able to login as a root User with telnet

Hi to All, I have configured telnet service in my server but am not able to login with root user in Linux Servers. For that what can i do ? Please help me Thanks in Advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

5. SCO

how to disabling root user

dear all, pls give the sollution to disable root login from telnet directly.but it should allow while we type su command (2 Replies)
Discussion started by: prakrithi
2 Replies

6. AIX

Problems with disabling remote root login

Hello! I'm going through security checklist for AIX 5.3 and i just can't disable remote login for root through ssh. What i did: - in /etc/security/user i added a line: rlogin = false which works fine when i try to login through telnet - after installation of openSSH i edited... (3 Replies)
Discussion started by: veccinho
3 Replies

7. SCO

Disabling root login

Hy, Coud someone tell me how to disable root login via terminal (only from console should be allowed). There is no ssh installed, only telnet. I created a user which will have permission to su to root, but now i don't know where and what to modify to disable root login? SCO OpenServer 5 ... (1 Reply)
Discussion started by: veccinho
1 Replies

8. Solaris

Disabling telnet

I am running solaris 9.. currently has telnet / ssh access.. Initially I just want to stop telnet access (but leave ftp open as some scripts etc still using this and need modification) As far as I know I just need to do the following: edit the /etc/inetd.conf file and comment out: telnet ... (2 Replies)
Discussion started by: frustrated1
2 Replies

9. UNIX for Dummies Questions & Answers

disabling telnet

how do i disable the telnet (2 Replies)
Discussion started by: rmuhammad
2 Replies

10. UNIX for Dummies Questions & Answers

Disabling Telnet

How do you keep users from logging on while you do file maintenance? Is there a way to temporarily disable telnet? (2 Replies)
Discussion started by: michieka
2 Replies
Login or Register to Ask a Question