Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

rlogin

Posted on 2001-06-28
8
515 Views
Last Modified: 2013-12-15

i need to turn on rlogin, it went away and the linux server will not accept any connection. I recently upgraded to rh7.1 and that is when my rlogin went south.  I managed to get telnet up and running, but most of the people on the network like to use rlogin, how do i turn it back on?
0
Comment
Question by:shisuck
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:meyarivan
ID: 6236926
hi,
    you can turn it on using either linuxconf or ntsyv.
   
    Using ntsysv or the services menu of linuxconf, simply choose the rlogin and xinetd. You can either restart the machine or manually run the following command:

/etc/rc.d/init.d/xinetd restart

mary
0
 

Author Comment

by:shisuck
ID: 6237681
now when i do rlogin mavrick
ON one box->i get a login prompt, as soon as i type username it says login incorrect, does not even ask for password.
otherBox-> I don't have neither one, rlogin or xinetd?
0
 
LVL 1

Expert Comment

by:meyarivan
ID: 6238038
it would be helpful if you post the error msgs which appear in /var/log/messages as soon as you try to login via rlogin. (also which linux distribution have you installed on the second machine)

mary
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:shisuck
ID: 6238094
both have RH7.1
error message:
in.rlogind[7160]: PAM authentication failed for in.rlogind


now on my other box, I installed xinet, but I still don't see rlogin at the ntsysv menu.
0
 
LVL 1

Expert Comment

by:meyarivan
ID: 6238147
can you post te contents of /etc/pam.d/rlogin

mary
0
 
LVL 1

Expert Comment

by:meyarivan
ID: 6238160
can you post te contents of /etc/pam.d/rlogin

mary
0
 

Author Comment

by:shisuck
ID: 6244834
#%PAM-1.0
auth       required     /lib/security/pam_securetty.so
auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    optional     /lib/security/pam_console.so


now when i get a login prompt and put a valid user name, i do not get a password prompt and login fails, BUT.
if i start with an invalid user, it prompt for a password, then when it fails i can put a valid user  and password and then i can access the system
why why why why why
0
 
LVL 5

Accepted Solution

by:
garboua earned 100 total points
ID: 6255682
BECAUSE:
1. backup your  /etc/pam.d/rlogin
2. change you /etc/pam.d/rlgoin to this
auth       required     /lib/security/pam_nologin.so
auth       required     /lib/security/pam_securetty.so
auth       required     /lib/security/pam_env.so
auth       sufficient     /lib/security/pam_rhosts_auth.so
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth

and you should be up and running in less than a minute :-)
I'm assuming you are using shadow.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question