The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NIM server setup on etherchannel setup environment pdtak AIX 1 05-28-2008 01:54 PM
Hpux Csa -hp 0 095 pksnairg HP-UX 0 04-07-2008 10:48 PM
gdb for HPUX 11.23 rimon HP-UX 0 11-11-2007 05:59 AM
HPUX any help newbird HP-UX 1 02-06-2005 02:36 PM
HPUX 10.20 et HPUX 11 Olivier UNIX for Dummies Questions & Answers 2 03-27-2002 03:30 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
how to setup rshfor HPUX

I want to setup rsh, what things do i needed? where to downlaod rsh? and how to conifgure it? is there any files to configure?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-14-2008
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 780
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
On HP-UX, "rsh" is usually the restricted shell, not the remote shell. The remote shell is named "remsh". Man remsh for more information.
Reply With Quote
  #3 (permalink)  
Old 03-14-2008
vbe vbe is offline
Registered User
 

Join Date: Sep 2005
Location: Switzerland
Posts: 364
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
And if it is the restricted shell you are talking about :
rsh Restricted version of the POSIX or Bourne shell command
interpreter. Sets up a login name and execution
environment whose capabilities are more controlled
(restricted) than normal user shells.

Then, Go and look at the man: man sh-bourne (1) for complete documentation of implementation
Reply With Quote
  #4 (permalink)  
Old 03-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
thank you,so it is remsh? i want to run a script in HPUX and aix in my linux server, this is what i wanted, i want to change ip in hpux servers and aix, for DR purposes.
Reply With Quote
  #5 (permalink)  
Old 03-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
When i tried to test remsh this what i got, i really wanted to run a script, what will i do?


# remsh server1 'uptime'
permission denied

# remsh server1
Password:

# remsh server2
Password:
Reply With Quote
  #6 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Mar 2008
Posts: 23
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
hosts.equiv

Configuring hosts.equiv and .rhosts will help.
Reply With Quote
  #7 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
it wont for password anymore? and i can run the script?
Reply With Quote
  #8 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Mar 2008
Posts: 23
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
After configuring these two files, it wont prompt you for the password.
Reply With Quote
  #9 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
have you tried configured? can i see some sample? at least i have an idea
Reply With Quote
  #10 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Mar 2008
Posts: 23
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
It is simple configuration. Suppose you have two hosts, hostA and hostB.

From hostA, you want to do remsh on hostB. Then in hostB, create a file /etc/hosts.equiv and put hostA in hosts.equiv. But this user equivalency will work if the user with which you are logged in on hostA exists on hostB with same mnemonic name.

Note: If you are logged in as root on hostA then /etc/hosts.equiv will not work. Instead create .rhosts in the root directory of root on hostB.

Hope this helps.
Reply With Quote
  #11 (permalink)  
Old 03-18-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Ok, i already did what you told me. Below are the logs while trying to remsh to my aix box.

rshd: 0826-826 The host name for your address is not known.

and in the solaris.
permission denied

note: i can directly telnet using my root account to any server.
Reply With Quote
  #12 (permalink)  
Old 03-18-2008
Registered User
 

Join Date: Dec 2007
Location: Philippines, Cebu City
Posts: 65
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Yoh,
in /.rhosts it should be root host1, and also to /etc/hosts.equiv.

it will make a difference

$hostname
hosts2
$ cat .rhosts
root host1
$cat /etc/hosts.equiv
root hosts1

#hostname
hosts1
#remsh hosts2 -l root uptime
09:53AM up 89 days, 1:04, 2 users, load average: 0.07, 0.09, 0.10

Thanks it will work dude
Reply With Quote
  #13 (permalink)  
Old 03-23-2008
Registered User
 

Join Date: Feb 2008
Posts: 37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
thanks it works for me
Reply With Quote
Google UNIX.COM
Reply

Tags
linux, solaris

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m arg list too long ascii eof autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h dead.letter export display find grep grep multiple lines grep multiple words grep or grep recursive grep unique inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime perl array length ping port read awk output into multiple variables replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix memory usage unix mtime unix simulator unix.com vi tab size while loop within while loop shell script


All times are GMT -7. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101