- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: RHEL4 - telnet as root denied
Operating System - Linux
1758027
Members
1974
Online
108866
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 07:19 AM
тАО06-15-2006 07:19 AM
RHEL4 - telnet as root denied
When I run chkconfig --list, I see the xinetd service "krb5-telnet", not just "telnet".
I turn on krb5-telnet, and non-root users can then telnet and login successfully. Root, however cannot. I have already added entries into /etc/securetty to allow pts/0 --> pts/4 access. No luck.
This is only a one-time thing - I plan to disable telnet once we load some software that requires telnet access to install...
What am I missing?
-tjh
I turn on krb5-telnet, and non-root users can then telnet and login successfully. Root, however cannot. I have already added entries into /etc/securetty to allow pts/0 --> pts/4 access. No luck.
This is only a one-time thing - I plan to disable telnet once we load some software that requires telnet access to install...
What am I missing?
-tjh
I learn something new everyday. (usually because I break something new everyday)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 07:45 AM
тАО06-15-2006 07:45 AM
Re: RHEL4 - telnet as root denied
Hi Thomas,
This may help you,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982531
Regards,
Sung
This may help you,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982531
Regards,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 07:47 AM
тАО06-15-2006 07:47 AM
Re: RHEL4 - telnet as root denied
from RHN:
This article assumes that you have the telnet-server package properly installed and listening on port 23.
By default, for security purposes, the root user can not telnet to a Red Hat system. One way to change this it to modify your /etc/pam.d/login file. A default file looks similar to this:
#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
In this file, the first line:
auth required pam_securetty.so
is what controls the root login for telnet, as well as other services. Understand what you are doing before making this change. If you do not understand what this will do to your system, then do not proceed.
In order to allow root login with telnet, comment out the first auth line so that your /etc/pam.d/login looks like this:
#%PAM-1.0
#Commented out below line in order to allow root access for telnet
#auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
Once you save these changes, you should be able to telnet to your system as the root user:
[root@jaws root]# telnet 10.0.0.15
Trying 10.0.0.15...
Connected to 10.0.0.15.
Escape character is '^]'.
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
Kernel 2.4.21-32.0.1.ELsmp on an i686
login: root
Password:
Last login: Sat Oct 22 11:58:56 from 10.0.0.25
This article assumes that you have the telnet-server package properly installed and listening on port 23.
By default, for security purposes, the root user can not telnet to a Red Hat system. One way to change this it to modify your /etc/pam.d/login file. A default file looks similar to this:
#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
In this file, the first line:
auth required pam_securetty.so
is what controls the root login for telnet, as well as other services. Understand what you are doing before making this change. If you do not understand what this will do to your system, then do not proceed.
In order to allow root login with telnet, comment out the first auth line so that your /etc/pam.d/login looks like this:
#%PAM-1.0
#Commented out below line in order to allow root access for telnet
#auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
Once you save these changes, you should be able to telnet to your system as the root user:
[root@jaws root]# telnet 10.0.0.15
Trying 10.0.0.15...
Connected to 10.0.0.15.
Escape character is '^]'.
Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
Kernel 2.4.21-32.0.1.ELsmp on an i686
login: root
Password:
Last login: Sat Oct 22 11:58:56 from 10.0.0.25
"Did you get that memo?"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2006 07:58 AM
тАО06-15-2006 07:58 AM
Re: RHEL4 - telnet as root denied
Turns out that telnet-server package is no longer installed by default. I'll install, and this should solve my issue.
I'd be interested to know if the krb5-telnetd is able to allow root login at all.
Argh.
Thanks,
-tjh
I'd be interested to know if the krb5-telnetd is able to allow root login at all.
Argh.
Thanks,
-tjh
I learn something new everyday. (usually because I break something new everyday)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP