![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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... |
| Forum Sponsor | ||
|
|
|
|||
|
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 |
|||
| Google UNIX.COM |