Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

telnet as root

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
I'm running Redhat Linux 7.1,
after setting up the box, I can't logon as root during a telnet session
(from a remote machine to the Linux server)

The xidentd daemon is running, allowing telnet
(I can telnet using another user so..)

How can I allow root to logon during telnet ?
Where do I have to restrict access for users ? ---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------------------------------------------
Peter Van Eeckhoutte
peter.ve@pandora.be
*:->* Did this post help? Click below to let me know !
 
hosts.allow and hosts.deny and ipchains has to be configured correctly.

U want to have acces from a remote machine, make sure u allow the ip of that machine to have access to the server. mcvdmvs
-- "It never hurts to help" -- Eek the Cat
 
I can access the server from any machine, with all users, but not with user 'root'...

I know ssh is much safer, but I still want to know how I can set these rights...

by the way : I'm using xidentd... is this still using hosts.allow and hosts.deny ? ---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------------------------------------------
Peter Van Eeckhoutte
peter.ve@pandora.be
*:->* Did this post help? Click below to let me know !
 
A lot of Linux distros disable remote root login (well, i know Debian certainly does). So if you need to telnet in - do so as a normal user and type "su -" and, as prompted, enter your root password and this should work.

To be honest I don't know how your enable/disable remote root logins, but it is far securer to login as a normal user and change. Having said that - really don't use telnet when you're doing anything with root - people can see your plain text password with a little effort. SSH is simple & there are clients for all OSs so use it :)

Alex
 
Hi,

As you obviously realise it is <NOT> a good idea to allow telnet as root and for that reason direct root logon is not configured. You can logon as an ordinary user and 'su', however which is one way around it.

If you really want to do it you have to get around p.a.m. security and I believe you need to add the following to /etc/securetty :

pts/0
pts/1

If you wanted to allow the remote 'r' series commands also add :

rexec
rsh
rlogin

I strongly suggest, however, that you use openSSH instead.

RGds

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top