LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2014, 12:11 PM   #1
bulrush15
LQ Newbie
 
Registered: Jul 2014
Location: West Michigan
Posts: 29

Rep: Reputation: Disabled
CentOS 7.0, can't login via rexec


Server: Cent OS 7.0.1406.e17
Client: Win 7, currently running putty, but I need an xterm to run via Exceed


Situation
  1. We just made a new VM with CentOS. I do basic things on linux but I don't know how to do much in the admin area, so please be patient.
  2. I want to connect to the new CentOS from my Win 7 PC using Hummingbird Exceed 14.0. My PC is in the same network, not outside the building or anything.
  3. I have root access.
  4. yum installs packages so the internet works.
  5. I'm using putty to connect via ssh right now, but need an xterm connection via rexec. One reason is I want to use nedit, or a decent editor, like pine.
  6. I turned on host messages in Exceed but I don't get any, so I think I can't connect to the VM at all. Usually with host messages turned on, I'll be able to see errors like "invalid password".
  7. * Googling and reading web pages for 2 hours hasn't helped.
  8. "rexec", "rsh", "rlogin" are in /etc/securetty along with some other things.
  9. When I did 'service xinetd restart' I got this message: "Redirecting to /bin/systemctl restart xinetd.service"

/etc/xinetd.d/rexec looks like this;
Code:
# default: off
service exec
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
}
/etc/hosts looks like this:
Code:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/pam.d/rexec looks like this:
Code:
# /etc/pam.d/rexec
auth required pam_nologin.so
auth required pam_securetty.so
auth required pam_env.so
auth include system-auth
account include system-auth
session optional pam_keyinit.so force revoke
session include system-auth
Steps I took
  1. I installed xinetd on CentOS via yum. Then I installed yum install rsh-server.x86_64. Then I restarted the xinetd using 'service xinetd restart'.
  2. I also installed xterm via 'yum install xterm.x86_64'.
  3. Then I installed rsh via 'yum install rsh-server.x86_64' because that's the only package that appeared when I searched for rexec.
  4. Tried to connect via Exceed 14.0 (rexec) but got this message in /var/log/messages: "Jul 23 10:54:14 complinux xinetd[3889]: Server /usr/sbin/in.rexecd is not executable [file=/etc/xinetd.d/rexec] [line=10]"
  5. Exceed error is: "Unable to connect to host using specified start method."
  6. I also just restarted the VM and still cannot connect via Exceed.

The last login session looks like this in /var/log/messages:

Code:
Jul 23 13:07:03 complinux systemd-logind: Removed session 2.
Jul 23 13:07:10 complinux systemd: Starting Cleanup of Temporary Directories...
Jul 23 13:07:10 complinux systemd: Started Cleanup of Temporary Directories.
Jul 23 13:07:17 complinux systemd: Created slice user-0.slice.
Jul 23 13:07:17 complinux systemd: Starting Session 5 of user root.
Jul 23 13:07:17 complinux systemd: Started Session 5 of user root.
Jul 23 13:07:17 complinux systemd-logind: New session 5 of user root.
Jul 23 13:10:02 complinux systemd: Starting Session 6 of user root.
Jul 23 13:10:02 complinux systemd: Started Session 6 of user root.

Can someone explain like I'm 5 how to get rexec working? It works on another Linux (RHEL) system we have but not on the new CentOS. Could it be somethings as simple as starting the rexecd service? Or rebooting the VM?

Would you recommend a book for a newbie like me to get rexecd going?

Thank you.

Last edited by bulrush15; 07-23-2014 at 12:24 PM.
 
Old 07-23-2014, 02:35 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
https://access.redhat.com/solutions/7321 they say to use openssh.


http://bose.utmb.edu/Compu_Center/RH...pam-rexec.html Not sure if this is still current. Rather doubt it but might look at it too.
 
Old 07-24-2014, 04:46 AM   #3
bulrush15
LQ Newbie
 
Registered: Jul 2014
Location: West Michigan
Posts: 29

Original Poster
Rep: Reputation: Disabled
  1. By doing 'yum list install' I confirmed I have openssh 6.4p1 installed.
  2. I have read and followed the instructions on about 10 different web pages with no luck.
  3. Does anyone know how to get this running?
  4. Is there any utility to help me troubleshoot this?
  5. Should I stop using Exceed on Win 7 and try another Xwindows client?

Last edited by bulrush15; 07-24-2014 at 05:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rexec przytula Linux - Newbie 1 10-29-2008 01:51 AM
rexec hangs hacketta Linux - Newbie 1 03-22-2007 08:35 AM
REXEC not working viv_pol Linux - Networking 0 06-11-2006 10:56 PM
Rexec problem cuencano AIX 1 06-17-2005 03:02 PM
Trying to get rexec to work. When incoming rexec, linux host responds 'Where are you krulr Red Hat 1 09-12-2003 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration