Unable to login using .rhosts

Bug #582858 reported by Matteo Landi
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
netkit-rsh (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Everytime I try to login via rlogin using the .rhosts file, I get back a "Permission denied" message, and I'm prompted for the password.

I checked the error messages from /var/log/auth.log, and it seems a few libraries are missing from /lib/security. In particular I needed to symlink a few of them before succeeding with the no-password login:

# ln -s pam_rhosts.so pam_rhosts_auth.so
# ln -s pam_unix.so pam_unix_session.so
# ln -s pam_unix.so pam_unix_acct.so

Is this a known problem or not?

Hope this could help.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: rsh-server 0.17-14ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Wed May 19 16:00:22 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: netkit-rsh

Revision history for this message
Matteo Landi (landimatte) wrote :
Revision history for this message
mhtrinh (mhtrinh) wrote :

Hi,

Which package did you install as rsh server ? I got the same problem with "rsh-server" package (Ubuntu install this one by default) on Ubuntu Server 10.04
I replace it with "rsh-redone-server" and it solve the problem.
Regards,

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

Yes, indeed, this is a problem with the rsh-server package. The problem is that per libpam-modules:

pam (1.1.0-3) unstable; urgency=low

  * pam_rhosts_auth module obsolete, symlink removed

    The pam_rhosts_auth module was dropped upstream prior to the lenny
    release and a compatibility symlink provided in the libpam-modules
    package, pointing at the new (and not 100% compatible) pam_rhosts
    module. This symlink has now been dropped. If you still have
    references to pam_rhosts_auth in your /etc/pam.d/* config files, you
    will need to fix these, since they no longer work.

    For information on using pam_rhosts, see the pam_rhosts(8) manpage.

 -- Steve Langasek <email address hidden> Wed, 02 Sep 2009 16:17:16 -0700

Yet in /etc/pam.d/rsh from rsh-server:

auth required pam_nologin.so
auth required pam_env.so
auth required pam_rhosts_auth.so
account required pam_unix_acct.so
session required pam_unix_session.so

Revision history for this message
Matteo Landi (landimatte) wrote : Re: [Bug 582858] Re: Unable to login using .rhosts

As you said, I installed rsh-server.
Removing the symbolic links, the package, and reinstalling
rs-redone-server fixed the problem.
Regards,

ps. sorry for the late answer.

On Thu, Jun 10, 2010 at 4:33 PM, Brian J. Murrell <email address hidden> wrote:
> Yes, indeed, this is a problem with the rsh-server package.  The problem
> is that per libpam-modules:
>
> pam (1.1.0-3) unstable; urgency=low
>
>  * pam_rhosts_auth module obsolete, symlink removed
>
>    The pam_rhosts_auth module was dropped upstream prior to the lenny
>    release and a compatibility symlink provided in the libpam-modules
>    package, pointing at the new (and not 100% compatible) pam_rhosts
>    module.  This symlink has now been dropped.  If you still have
>    references to pam_rhosts_auth in your /etc/pam.d/* config files, you
>    will need to fix these, since they no longer work.
>
>    For information on using pam_rhosts, see the pam_rhosts(8) manpage.
>
>  -- Steve Langasek <email address hidden>  Wed, 02 Sep 2009 16:17:16 -0700
>
> Yet in /etc/pam.d/rsh from rsh-server:
>
> auth    required        pam_nologin.so
> auth    required        pam_env.so
> auth    required        pam_rhosts_auth.so
> account required        pam_unix_acct.so
> session required        pam_unix_session.so
>
> --
> Unable to login using .rhosts
> https://bugs.launchpad.net/bugs/582858
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “netkit-rsh” package in Ubuntu: New
>
> Bug description:
> Everytime I try to login via rlogin using the .rhosts file, I get back a "Permission denied" message, and I'm prompted for the password.
>
> I checked the error messages from /var/log/auth.log, and it seems a few libraries are missing from /lib/security. In particular I needed to symlink a few of them before succeeding with the no-password login:
>
> # ln -s pam_rhosts.so pam_rhosts_auth.so
> # ln -s pam_unix.so pam_unix_session.so
> # ln -s pam_unix.so pam_unix_acct.so
>
> Is this a known problem or not?
>
> Hope this could help.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: rsh-server 0.17-14ubuntu1
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic x86_64
> Architecture: amd64
> Date: Wed May 19 16:00:22 2010
> InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
> ProcEnviron:
>  LANG=en_US.utf8
>  SHELL=/bin/bash
> SourcePackage: netkit-rsh
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/netkit-rsh/+bug/582858/+subscribe
>

--
Matteo Landi
http://www.matteolandi.net/

Revision history for this message
Richard M Smith (richard-featplus-com) wrote :

Important here to note that rsh-redone-client does not provide rcp, whereas rsh-client does.
So the working combination is rsh-redone-server with rsh-client.
Anything else doesn't fully work with rhosts.

Revision history for this message
openhacker (leisner) wrote :

Thanks a lot -- I've been banging my head against the wall (I've used passwordless rsh for 20 years)

It worked on old ubuntus and new ones -- not that one!!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netkit-rsh (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.