- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help for solving rexec asking for password.
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
08-26-2004 12:27 AM
08-26-2004 12:27 AM
I'm testing rsh or rexec command : (HPUX 11.11)
A server rlogin to B server => it's OK!
[gbm5:/] #rlogin gbm1
[gbm1:/] #
[gbm1:/] #
logout
Connection closed.
[gbm5:/] #
B server test shell script:
[gbm1:/] #date
Thu Aug 26 20:19:07 EAT 2004
[gbm1:/] #cat a.sh
#! /bin/sh
date >> /a.txt
[gbm1:/] #a.sh
[gbm1:/] #cat a.txt
Thu Aug 26 20:18:59 EAT 2004
Thu Aug 26 20:19:13 EAT 2004
[gbm1:/] #
A server test for remote executing:
if I don't enter root password , it won't work:
[gbm5:/] #rexec gbm1 -l root /a.sh
Password (gbm1:root):
rexecd: Login incorrect.
You have mail in /var/mail/root
[gbm5:/] #
else Bingo!
[gbm5:/] #rexec gbm1 -l root /a.sh
Password (gbm1:root):
[gbm5:/] #
[gbm1:/] #cat a.txt
Thu Aug 26 20:18:59 EAT 2004
Thu Aug 26 20:19:13 EAT 2004
Thu Aug 26 20:21:49 EAT 2004
[gbm1:/] #
A server(gbm5) , root .rhosts:
[gbm5:/] #cat .rhosts
gbm1 root
[gbm5:/] #
B server(gbm1) , root .rhosts:
[gbm1:/] #cat .rhosts
gbm5 root
[gbm1:/] #
How could I exec a.sh at A server(gbm5)?
Even I tried rsh at A , and still failed:
[gbm5:/] #rsh gbm1:/a.sh
rsh: gbm1:/a.sh: The operation is not allowed in a restricted shell.
[gbm5:/] #
Need helps , appreicate for any suggestions.
Thanks.
Violin.
violin@gbm.com.tw
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 12:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 12:33 AM
08-26-2004 12:33 AM
Re: Need help for solving rexec asking for password.
Second, there's no such thing as rsh in hp-ux - it's remsh.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 12:39 AM
08-26-2004 12:39 AM
Re: Need help for solving rexec asking for password.
A server:
[gbm5:/] #cd $HOME
[gbm5:/] #pwd
/
[gbm5:/] #cat .rhosts
gbm1 root
[gbm5:/] #
B server:
[gbm1:/] #cd $HOME
[gbm1:/] #pwd
/
[gbm1:/] #cat .rhosts
gbm5 root
[gbm1:/] #
And rlogin or rcp commands are testing normally between A and B.
Thanks
Violin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 12:56 AM
08-26-2004 12:56 AM
Re: Need help for solving rexec asking for password.
rsh is the restricted shell in HP-UX (and is not associated with the r-cmd suite).
rexec uses the rexecd server whereas remsh uses the remshd server. rexec uses a different user-authentication mechanism than the r-cmd suite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 01:03 AM
08-26-2004 01:03 AM
Re: Need help for solving rexec asking for password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 04:48 AM
08-26-2004 04:48 AM
Re: Need help for solving rexec asking for password.
machine yoda login blh password 123abc
and now I could type: rexec yoda date
and I would get the date back, similar to remsh. The difference is that .netrc is on the local machine *and* it contains plaintext login/password information. This file will silently fail to work if the permissions are not 600, not in the user's $HOME directory or not owned by the user. For a highly secured management server, rexec is slightly better than remsh/rlogin. But the preferred remote managment tool is ssh.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 01:28 PM
08-26-2004 01:28 PM
Re: Need help for solving rexec asking for password.
I'll read it more clearly.