LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-12-2005, 03:38 PM   #1
sylliaad
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Question in.rsdh denies access to root


I have Linux version 9 installed and I'm having trouble getting rsh to work from another unix host to the Linux system.

I've updated done the following:
/etc/secuetty file and added: rsh, rexec, rlogin
/etc/pam.d/rsh modified the pam_rhost_auth line to 'suffient' from required
created /etc/hosts/equiv file
added ALL:ALL to the hosts.allow
created .rhosts .. with fully qualified domain name
turned on rsh and rlogin in chkconf

I can rsh -l otheruser linux-host date .. and this works..
But it fails whenever I try to run rsh from another host as root..

I can see the pam authenicate.. but rsh denies access to root.

[root@localhost root]# Jul 12 13:36:22 localhost pam_rhosts_auth[2530]: allowed to root@us-sd-intralink2.sdp.sel.sony.com as root
Jul 12 13:36:22 localhost in.rshd[2530]: rsh denied to root@us-sd-intralink2.sdp.sel.sony.com as root: Permission denied.
Jul 12 13:36:22 localhost in.rshd[2530]: rsh command was 'ls'

any ideas..??

you help is greatly appreciated..

-doug s
 
Old 07-13-2005, 06:02 PM   #2
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
When authenticating to the root user (user with the UID of 0), the first check of the /etc/hosts.equiv file is skipped. Success of the rhosts authentication is based solely on the contents of the root user's $HOME/.rhosts file.
 
Old 07-13-2005, 06:23 PM   #3
sylliaad
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I've working with the .rhosts .. with no luck ..

if I put the hostname, fully quailified.domain.host with +.. the pam authentication will fail.. if I use hostname root in the .rhosts.. the pam authenticate passes but rsh denies access.. so it looks like the authenitcate is happening.. just the rsh is failing or is by default not allowing rsh by root user.

error in message log with hostname root in the .rhosts under the root $home folder.. root $home is not / but in this case its /root..

any other ideas..?

thanks again
 
  


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
Suse 9.1 Kinternet denies me Phaen Ilda Linux - Newbie 5 12-01-2004 06:09 PM
Here on Win/Iexplorer: Linux denies Access to the Net? JZL240I-U Linux - General 6 07-19-2004 12:29 AM
Proftp denies connections Squiddy Linux - Networking 8 11-05-2003 10:27 PM
windoz can see but denies share laminapoo Linux - Networking 2 10-21-2003 08:13 AM
Squid denies everything ryhackl Linux - Networking 3 06-11-2003 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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