LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-03-2005, 08:53 PM   #1
cool244
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
unable to do rsh as root.


Hello,

In spite of following steps to enable root rsh, I am getting following message in /var/log/messages:


Mar 3 21:48:19 lcan350 rshd[21280]: PAM unable to dlopen(/lib/security/pam_rhosts_auth.so)
Mar 3 21:48:19 lcan350 rshd[21280]: PAM [dlerror: /lib/security/pam_rhosts_auth.so: cannot open shared object file: No such file or directory]
Mar 3 21:48:19 lcan350 rshd[21280]: PAM adding faulty module: /lib/security/pam_rhosts_auth.so
Mar 3 21:48:19 lcan350 rshd[21280]: PAM unable to dlopen(/lib/security/pam_securetty.so)
Mar 3 21:48:19 lcan350 rshd[21280]: PAM [dlerror: /lib/security/pam_securetty.so: cannot open shared object file: No such file or directory]
Mar 3 21:48:19 lcan350 rshd[21280]: PAM adding faulty module: /lib/security/pam_securetty.so
Mar 3 21:48:19 lcan350 rshd[21280]: PAM unable to dlopen(/lib/security/pam_nologin.so)
Mar 3 21:48:19 lcan350 rshd[21280]: PAM [dlerror: /lib/security/pam_nologin.so: cannot open shared object file: No such file or directory]
Mar 3 21:48:19 lcan350 rshd[21280]: PAM adding faulty module: /lib/security/pam_nologin.so
Mar 3 21:48:19 lcan350 rshd[21280]: PAM unable to dlopen(/lib/security/pam_env.so)
Mar 3 21:48:19 lcan350 rshd[21280]: PAM [dlerror: /lib/security/pam_env.so: cannot open shared object file: No such file or directory]
Mar 3 21:48:19 lcan350 rshd[21280]: PAM adding faulty module: /lib/security/pam_env.so
Mar 3 21:48:19 lcan350 rshd[21280]: PAM unable to dlopen(/lib/security/pam_stack.so)
Mar 3 21:48:19 lcan350 rshd[21280]: PAM [dlerror: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory]
Mar 3 21:48:19 lcan350 rshd[21280]: PAM adding faulty module: /lib/security/pam_stack.so
Mar 3 21:48:19 lcan350 rshd[21280]: rsh denied to root@lcan350.pbm.ihost.com as root: Permission denied.
Mar 3 21:48:19 lcan350 rshd[21280]: rsh command was 'date'




I have added following to /etc/securetty file

rexec
rsh
rlogin

I also tried putting pseudo tty names and that also did not work.

I have tried /root/.rhosts with both 644 and 600 permissions. Can someone help me out here?




Thank you
 
Old 03-04-2005, 03:57 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
For starters, ssh seems to be the preferred method of remote connection due to better security.

For your situation, it might not be a bad idea to grant access to a less privledged user and leave root disabled from logging in remotely. This gives increased security since you allow a normal user, which has to be known to even attempt hacking in, and that normal user can then still su once logged in to do any tasks that need root.
 
Old 03-28-2005, 03:50 PM   #3
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
NEVER USE RSH, use ssh! Much much better
 
  


Reply



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
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
rsh with root access? asadarfeen Linux - Enterprise 1 08-23-2005 06:34 PM
unable to rsh to the localhost majalee Linux - Networking 0 08-20-2004 01:37 AM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM
rsh as root susx Linux - General 3 09-19-2001 12:30 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:33 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