- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rlogin
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 01:03 PM
06-02-2008 01:03 PM
rlogin
Hi,
I have 2 HP IA systems. I could do rlogin b/w them as root.
Howerver, when I try to do rlogin from one user of system A to another user of system B, it is asking for password.
Those user ID's do not exists on the other systems.
My .rhosts entry reads like this
On Sys A
On Sys B
Thanks in Advance
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 01:08 PM
06-02-2008 01:08 PM
Re: rlogin
If not then just about anyone could log in and what would be the need of having any form of security.
BTW, trusting system to system authentication is anti-security.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 02:02 PM
06-02-2008 02:02 PM
Re: rlogin
Hi,
As per the man page, .rhosts should work, even if the user doesn't exist locally. I want to try this out. Doesn't it work, at all?
Regards
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 02:43 PM
06-02-2008 02:43 PM
Re: rlogin
trying to hide all the useful details. To
a (this) casual reader, the difference, if
any, between "
is it clear (to me) what "My" or "local"
means in this situation.
Which user accounts exist where?
What, exactly, is in each user's ".rhosts"
file?
Ownership and permissions on those ".rhosts"
files and the home directories ("ls -l"
output)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 11:42 PM
06-02-2008 11:42 PM
Re: rlogin
It should work with different user if you put the hostname and the username correctly in the destination .rhosts file.
But as mentioned above, the main culprit might be the permission of the .rhosts file or the dir of the user. If you are testing and you do the test as root most probably the owner of those is still root.
Just change the permissions and it should work.
Regards,
Rasheed Tamton
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 11:53 PM
06-02-2008 11:53 PM
Re: rlogin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 08:00 AM
06-03-2008 08:00 AM
Re: rlogin
Hi,
I do have the required entries..
Let me explain it in detail.
Sys A : users A & C
Sys B : users B & C
User A doesn't exist on Sys B
User B doesn't exist on Sys A
when I enable rlogin for user C, it works without asking for a password.
when I enable b/w users A & B, it asks for a password. Moreover it doesnt accept the password. I have to key in the username & the password..
Thanks
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 12:34 PM
06-03-2008 12:34 PM
Re: rlogin
Who's stopping you? When can we expect this
detailed explanation to begin?
> when I enable b/w users A & B, it asks for
> a password.
How, exactly, do you "enable b/w users
A & B"? ("b/w"? Black and white?)
What, exactly, are you doing when "it asks
for a password"?
See earlier questions for requests for more
missing details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 01:37 PM
06-03-2008 01:37 PM
Re: rlogin
Sorry about the confusion.
B/W : Between
Added entries in the .rhosts file.
SYS A : ~A/.rhosts
+ B
SYS B : ~B/.rhosts
+ A
I tried replacing "+" with the FQDN / short names / host names that I see when I telnet from A to B under 'who -um'. No use.
It works without a password when I try using user C.
SYS A : ~C/.rhosts
+ C
SYS B : ~C/.rhosts
+ C
Was succesfull even if I use FQDN or shortnames of the hosts in place of "+" for user C
When it asks for a password, I enter the password. Not accpeted. Goes for login retry. Gives me a nornal login prompt, like telnet / ssh. Accepts username & password, like any other system & login method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 01:52 PM
06-03-2008 01:52 PM
Re: rlogin
In your case if from SYSA
# remsh sysb -l b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 01:55 PM
06-03-2008 01:55 PM
Re: rlogin
It says "remshd: Login incorrect."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 01:56 PM
06-03-2008 01:56 PM
Re: rlogin
I had no problem. I assume you are using from A in SYSA:
rlogin SYSB -l B
>Added entries in the .rhosts file.
>SYS A : ~A/.rhosts
>SYS B : ~B/.rhosts
Can you do "ll" on these two files so we can check ownership and permissions.
> I tried replacing "+" with the FQDN / short names / host names
I just used my short name. Have you tried using the IP address?
>Accepts username & password, like any other system & login method.
It's almost as if it has the wrong user name.
Can you look at lastb(1) to see what user had a bad login and what the password was.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:14 PM
06-03-2008 02:14 PM
Re: rlogin
when I explictly specify username with option -l, rlogin & remsh are working from Sys A.
Sys B is still asking for a password.
The Perms of ~/.rhosts 600
I tried with IP, FQDN / Short name & "+". No luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:17 PM
06-03-2008 02:17 PM
Re: rlogin
when I look at the lastb output, user B tops System A & user A tops System B.
As you are aware, user B doesn't exist on System A & vice versa.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:25 PM
06-03-2008 02:25 PM
Re: rlogin
Why are you using the word "when" here? You MUST use "-l username" when changing users. I.e. If you are A on SYSA, you tell rlogin you want be B on SYSB.
It then looks in ~B/.rhosts and finds "A" is allowed from SYSA.
Also, what is "working from Sys A"?
Do you have the lastb(1) data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:32 PM
06-03-2008 02:32 PM
Re: rlogin
Thanks Dennis !!!
When I use -l, r commands are working without a password from System A.
Sys B is still prompting for a password.
I cant disclose the hostname & usernames, as per our org policy..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 02:56 PM
06-03-2008 02:56 PM
Re: rlogin
>As you are aware, user B doesn't exist on System A & vice versa.
That's why you must use "-l other-username", even if A & B existed on both machines.
That's what Patrick and I have been telling you.
>When I use -l, r commands are working without a password from System A.
From A to B?
>Sys B is still prompting for a password.
From B to B or B to A or what?
>I cant disclose the hostname & usernames, as per our org policy..
(I missed your translated reply.)
For more details, you could use: lastb -R -x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 03:13 PM
06-03-2008 03:13 PM
Re: rlogin
Thank U very much.
I could do rlogin without a password, from both the machines.
"-l" did the trick.
Thankz once again to you all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 03:21 PM
06-03-2008 03:21 PM
Re: rlogin
Actually revealing (at long last, like
pulling teeth) what you were doing had a lot
to do with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 03:25 PM
06-03-2008 03:25 PM
Re: rlogin
We had DNS changes happening around the same time, which compounded my problems..
anyway, "all is well that ends well"
Good Day / Good Night to you wherever you are.
Cheers
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2008 03:28 PM
06-03-2008 03:28 PM
Re: rlogin
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2008 04:25 AM
06-04-2008 04:25 AM
Re: rlogin
You're breaking my heart.
Now, ask yourself what would have happened if
you had included in your first posting your
actual "rlogin" command, which might/must
have looked something like this:
rlogin sys_B_Name
where, you apparently expected system B to
intuit which user name you wanted it to use,
instead of something like this:
rlogin -l user_B sys_B_Name
along, of course, with the info about which
users existed where, where you were when you
gave that command, and all those other
missing details.
Now try to estimate how much time of how many
people was wasted chasing wild geese because
of all the useful information about this
problem which you failed to provide until it
was eventually dragged out.
Please try to keep in mind this example of
how not to pose a question the next time you
have a question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2008 05:05 AM
06-04-2008 05:05 AM
Re: rlogin
> rlogin -l user_B sys_B_Name
Or more like this: :-)
rlogin sys_B_Name -l user_B