The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Shell Programming and Scripting 3 06-04-2008 04:11 AM
Script using awk works only as super user gjithin Shell Programming and Scripting 10 05-09-2008 06:30 AM
Sunsolaris shell script runs only as super user gjithin SUN Solaris 4 05-09-2008 05:47 AM
reassigning key functions in super user mode lehcar511 UNIX for Advanced & Expert Users 5 06-19-2003 09:03 AM
FTP as Super User fbavent UNIX for Dummies Questions & Answers 3 05-22-2002 08:49 PM

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

Join Date: Jan 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
rsh as super user without password prompt

Dear forum,

First off, I'm using Solaris 5.6 UNIX. I'm trying to write a script which will connect to remote computers on a network (by specific IP's from a hosts file) and will run a separate script which is installed in each of the remote computers. My problem is that to run the script in the remote computers I need to log in as su (super user), which requires a password. I was advised to use the rsh command, but I am constantly prompted to input a password. Even after creating a .rhost and hosts.equiv in the home and bin dir.

I'm not a very proficient UNIX user. Only basic commands and what I've read. Is there any thing I've missed that I can do to avoid the password prompt?

Thanks for the help...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-13-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!
First of all,
Start all again as a simple user:
1)be sure to have a user account on all remote boxes you want to login...
2)create a .rhosts file with 640 permission and in it put the name of allowed servers followed by your account name
start simple : 1 remote access => 2 files one on each box in the $HOME directory (nowhere else!) eg in box1 file you should have one line: box2 myname and in box2 box1 myname
3) try:
Does it work? from box1: remsh or rsh box2

4) if it doesnt work there is no point complicating things:
Solve your issue first:
a) if its not working it may be name resolution does box2 know of box1?
b) Are the boxes up with more than one lan card?
c) etc...

One you get your account working you can figure out what you will have to do to get your su to work...

Good luck
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:57 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