- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rsh giving problem
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
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
10-30-2004 04:52 PM
10-30-2004 04:52 PM
I am doing rsh from Solaris to HPUX.
# rsh -l username hostname command
But this returns an error
"Cannot get password -- error 0x6"
I have edited .rhosts for the username's home directory and added "+ +" but still the problem exists.
Password is also set to "xyz"
Thanks for your helps.
Regards,
Girish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2004 06:08 PM
10-30-2004 06:08 PM
Re: rsh giving problem
I'd check and make sure I have patches reasonably up to date.
On the HP machine I'd check the /etc/inetd.conf file and make sure the r-protocols are not commented out. If Bastille has recently been run on the HP-UX box it recommends turning these protocols off and using openssh.
Not a bad Idea come to think of it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 03:37 PM
10-31-2004 03:37 PM
Re: rsh giving problem
I agree - just install ssh on both machines and setup an authorised key without a password. Does the same thing as rsh but much more reliably. (I too would hope these computers aren't exposed to hostile networks!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 04:28 PM
10-31-2004 04:28 PM
Re: rsh giving problem
I would like to tell you that it's happening with root user and not with normal user ....
Thought could helpp you advice me something.
Thanks U very much again and hope to see your replies very soon.
Regards,
Girish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 08:06 PM
10-31-2004 08:06 PM
Re: rsh giving problem
i would advice you to create a /etc/hosts.equiv file. see man hosts.equiv for more details.
The /etc/hosts.equiv file and files named .rhosts found in users' home
directories specify remote hosts and users that are "equivalent" to
the local host or user. Users from equivalent remote hosts are
permitted to access a local account using rcp or remsh or to rlogin to
the local account without supplying a password (see rcp(1), remsh(1),
and rlogin(1)). The security provided by hosts.equiv is implemented
by the ruserok() library routine, (see rcmd(3N)).
In this description, hostequiv means either the system
/etc/hosts.equiv file or the user .rhosts file. Note that .rhosts
must be owned by the user in whose home directory it is found and it
must not be a symbolic link. The /etc/hosts.equiv file defines
system-wide equivalency, whereas a user's .rhosts file defines
equivalency between the local user and any remote users to whom the
local user chooses to allow or deny access.
An entry in the hostequiv file is a single line (no continuations) in
the format:
[hostname [username]] [#comment]
Thus, it can be:
+ A blank line.
+ A comment line, beginning with a #.
+ A host name, optionally followed by a comment.
+ A host name and user name, optionally followed by a comment.
A host or user name is a string of printable characters,
excluding whitespace, newlines, and #.
Names are separated by whitespace.
For a user to be granted access, both the remote host name and the
user name must "match" an entry in hostequiv. When a request is made
for access, the /etc/hosts.equiv file is searched first. If a match
is found, access is permitted. If no match is found, the .rhosts file
is searched, if one exists in the local user's home directory. If the
local user is a superuser, /etc/hosts.equiv is ignored.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2004 08:18 PM
10-31-2004 08:18 PM
Solutionrsh on hp-ux is restricted shell. what you want rsh or remsh????)
(for root remsh /etc/hosts.equiv is not read, Only .rhosts
1. Is root account on remote system locked?? (If the remote system is trusted, /usr/lbin/getprpw -l lockout root will give you the status. Are there any messages about root acount lcoked on remote system?? check syslog.log)
2. If option 1 is ok, do as follows.
What are perms on remote_system:/$HOME/.rhosts
Should be read for root.
What is the entry in it??
should be as follows.
system_you_are_coming_from root
Check all above and post.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 12:55 AM
11-01-2004 12:55 AM