System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling root user in rlogin

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Enabling root user in rlogin

Hi

My HP-UX server is configured with rlogin.
I am not able to login by root user directly.

So now i am logging in using normal user and use " su - " to get root login.

16 REPLIES
Ivan Krastev
Honored Contributor

Re: Enabling root user in rlogin

Check /etc/hosts.equiv and .rhosts files.

regards,
ivan
Suraj K Sankari
Honored Contributor

Re: Enabling root user in rlogin

Hi,

Restrict root login to the console
/etc/securetty is used by the login command; the file contains the device names of tty lines (one per line,
without leading /dev/) on which root is allowed to login. We only allow the console.
# echo console > /etc/securetty
# chmod 400 /etc/securetty

remove "console" word from /etc/securetty

Suraj
Paul McCleary
Honored Contributor

Re: Enabling root user in rlogin

Hi,

Are you trying to use rlogin for password-less login?

Or is the problem that you are unable to login directly as root by any means? (rlogin, telnet, ssh)

Perhaps root login is restricted to the console only and not allowed from network ttys? Check for the /etc/securetty file.

HTH, Paul
T G Manikandan
Honored Contributor

Re: Enabling root user in rlogin

you need to check /etc/securetty as well as the root user's .rhosts file.

I would recommend configuring SSH for password-less login.
Md. Farhan A Azam
Trusted Contributor

Re: Enabling root user in rlogin

Hi senthil,

Plz check the below thread, hope it will help you.

https://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1324227

Thnx...Farhan
點燃
Valued Contributor

Re: Enabling root user in rlogin

You will need to check your /etc/hosts.equiv and $HOME/.rhosts file for the host and username entries.(Should be in 'hostname' 'username' format.)

regards!



Man's mind, once stretched by a new idea, never regains its original dimensions
Ganesan R
Honored Contributor

Re: Enabling root user in rlogin

Hi Senthilkumar,

>>>My HP-UX server is configured with rlogin.
I am not able to login by root user directly.<<

>>>>So now i am logging in using normal user and use " su - " to get root login<<<

Both the situations are different. If you are not able to login as root directly, you should look at the file /etc/securetty. This file restricts where root should be able to login directly. Most people specify only the console, so root direct login denied from network. root can login directly only on console.

Hope this clears you.
Best wishes,

Ganesh.
Md. Farhan A Azam
Trusted Contributor

Re: Enabling root user in rlogin

Hi,

In Local Node.(From where you want to rlogin)

#more /etc/hosts
in this file check that remote host entry is there or not. If not then
#vi /etc/hosts
make the entry of remote host.
#more .rhosts
In this file check that remote hostname and user id is there or not (it will looks like host1 root), if entry is not there then
#vi .rhosts
and make the entry.

Do the same in Remote server.

Thnx...Farhan

Taifur
Respected Contributor

Re: Enabling root user in rlogin

Hi Senthil,

You can check below link for rlogin


http://docs.hp.com/en/B9106-90011/hosts.equiv.4.html

Rgds//
Taifur
Taifur
Respected Contributor

Re: Enabling root user in rlogin

Hi Senthil

You can check below link as follows,

http://www.docs.hp.com/en/B2355-90827/ch02s01.html

Rgds//
Taifur
Md. Farhan A Azam
Trusted Contributor

Re: Enabling root user in rlogin

Hi,

>Check for the /etc/securetty file.

In my case...

I am trying to rlogin from server1 to server2 by using root userid and password. All entries are there in /etc/hosts and in .rhosts file of both server.

In server2.
# more securetty
console
#

but still i am able to login through rlogin. So any one can plz let us know that /etc/securetty file will efect in rlogin also.


Thnx...Farhan
senthil_kumar_1
Super Advisor

Re: Enabling root user in rlogin

My hp-ux server is in remote location.

I am connecting that HP-UX server using putty.

Now i am not able to login directly by root user.

so I am logging first using other user and again i use "su - " to get root lgoin.

Here i want direct root login.

there is no file like "/etc/securetty" in my server.

what is the procedures to create this file?
what are the contents this file have to cotain?
Ganesan R
Honored Contributor
Solution

Re: Enabling root user in rlogin

Hi again,

If you don't have file /etc/securetty file, then you should be able to login as root directly.

If the file contains like below,

# more /etc/securetty
console

root user can login directly only on console.
Best wishes,

Ganesh.
T G Manikandan
Honored Contributor

Re: Enabling root user in rlogin

Are you using SSH i.e port 22 with putty or 23 which is telnet.

If its SSH then check in sshd_config, edit the line "#PermitRootLogin yes, uncomment the line and restart sshd.
Avinash20
Honored Contributor

Re: Enabling root user in rlogin

Hi Senthil,

Few queries.

how are you trying to login to the serve
ssh/telnet ??

What is the error message you get when you try to login via root

If telnet, try to login via cmd to get the error message.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
senthil_kumar_1
Super Advisor

Re: Enabling root user in rlogin

Hi All

My problem solved. Now i am able to login by root user directly thru rlogin.

Solution:

I have deleted the file "/etc/securetty".