The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with output of find command being input to basename command... new_learner UNIX for Dummies Questions & Answers 2 12-14-2008 02:56 AM
awk/sed Command : Parse parameter file / send the lines to the ksh export command rajan_san Shell Programming and Scripting 4 11-06-2008 01:29 PM
assign a command line argument and a unix command to awk variables sweta_doshi Shell Programming and Scripting 0 08-08-2008 07:54 AM
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 09:12 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl SuSE 5 07-30-2007 09:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-31-2009
Srinivas_Hari Srinivas_Hari is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 13
rcp command

Hi friends,

Am trying to push a file on a remote server to my local host but getting "permission denied." error.

Please let me know the basic steps that i need to have a look at in order to let the "rcp" command work successfully.

Pl. Note:

Both the servers belong to Sun Solaris 10 SPARC family.
  #2 (permalink)  
Old 03-31-2009
Tahleen Tahleen is offline
Registered User
  
 

Join Date: Mar 2009
Location: Marseille, France
Posts: 2
you have to put a .rhosts file in the $home directory on the remote and local server, which contains the remote hostname and the user who wants to connect to.
  #3 (permalink)  
Old 03-31-2009
Srinivas_Hari Srinivas_Hari is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 13
Tx for the reply.

I did the following

------On Local server $HOME/.rhosts----------------
remoteserverip remoteuserid
---------------------------------------------------

------On Remote server $HOME/.rhosts-------------
localserverip localuserid
---------------------------------------------------

chmod 777 given to .rhosts file on both the servers

After employing the abovesaid steps, i tried again, but got the same error"Permission denied."

Pls advice if i need to carry out any other required steps to get my desired result.

rgds,
Srini
  #4 (permalink)  
Old 03-31-2009
Srinivas_Hari Srinivas_Hari is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 13
All,

I know that i am missing something basic here. A quick help is much appreciated.

Thanks in advance!

rgds,

Srini
  #5 (permalink)  
Old 03-31-2009
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
Rule # 4:

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
  #6 (permalink)  
Old 03-31-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
Permissions on .rhosts should be 644 (on some systems 600) owned by the account concerned or (preferably) root. Many unixes will ignore a .rhosts file which has incorrect permissions as an anti-hack measure.

To emphasise the reply from "tahleen":
No IP addresses in .rhosts - it must be the exact host name and precisely match that server's entry in /etc/hosts.
See "man .rhosts".

Tip: If you put your own host name and username in .netrc in your home directory on your local computer you can test rcp to yourself.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0