The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
ssh permission denied gefa AIX 3 12-04-2008 10:52 AM
Permission denied big123456 UNIX for Advanced & Expert Users 1 10-10-2007 07:17 AM
Permission Denied howeezy UNIX for Dummies Questions & Answers 0 09-14-2005 09:52 AM
tar : permission denied big123456 UNIX for Advanced & Expert Users 0 09-09-2005 04:32 AM
Permission Denied using VI on my NFS jennifer UNIX for Dummies Questions & Answers 4 08-08-2001 06:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-23-2002
Kevin Pryke Kevin Pryke is offline
Registered User
  
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
rcp 'permission denied'

I've followed suggestions as mentioned in this thread

Remote file copy

& I can now rcp a file to one of our servers, however there is another one which I still cannot contact, I just get the error 'permission denied'.

I've checked & doublechecked the contents of /.rhosts & /etc/hosts on both systems and they seem ok.

Any suggestions as to what could be causing this?

I'm on Sco 5, using my root login to rcp.

Thanks.
  #2 (permalink)  
Old 04-23-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Kevin,

I got this from the man page. You must have read and exe permission on all directories that are involved on both boxes. If you don't, your rcp will fail.


man rcp

" The rcp command copies files, directory subtrees, or a combination of files and directory subtrees from one or more systems to another. In many respects, it is similar to the cp command (see cp(1))."

" To use rcp, you must have read access to files being copied, and read and search (execute) permission on all directories in the directory path. Note that there are special requirements for third-party transfers which are described in the Third-Party Transfers section below. "
  #3 (permalink)  
Old 04-23-2002
Kevin Pryke Kevin Pryke is offline
Registered User
  
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
All the permissions are set as drwxrwxrwx or -rwxrwxrwx on both machines. Ones for development & the other is a off-site test system (I'm looking into releasing software over an ISDN link instead of what happens now, where an engineer goes in with a tape)

I have an idea it might be to do with the receiving machine (skipton) not allowing the sending one (gozo) to excecute the command, but the file I believe controls this (/etc/hosts.equiv) has an entry as

gozo root


There is another server (malta) that I can rcp to, which I've compared to skipton & can't see any differences. Would it help you for me to post all the relevant /.rhosts, /etc/hosts & /etc/hosts.equiv?
  #4 (permalink)  
Old 04-23-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
You might see if the r* commands are disabled on that box.

I am assuming you have root on this box...
  #5 (permalink)  
Old 04-23-2002
Kevin Pryke Kevin Pryke is offline
Registered User
  
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
Sorry, I'm not a system adminstrator, how can I tell if they've been disabled? I can see /usr/bin/rcp on each server, is that enough?


By the way, the files when copied onto malta end up with permissions of ' -rwx------ root sys' if that's any help

Thanks.
  #6 (permalink)  
Old 04-23-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
You would have to ask your SA.

Read the Man page for rcp. Here is another excerpt.

" The rcp routine does not prompt for passwords. The current local user name or any user name specified via ruser must exist on rhost and allow remote command execution via remsh(1) and rcmd(3N). remshd(1M) must be executable on the remote host."

Read the Man page for rcmd and remshd as well.

It may be that your user doesn't have the same privileges on that other box, like you do on malta.

Sorry I can't be more help. rcp is usually reserved for Root user. At least it is with my company. We implement a Secure form of FTP for my users/DBAs to transfer files.
  #7 (permalink)  
Old 04-24-2002
Kevin Pryke Kevin Pryke is offline
Registered User
  
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
Thanks for the advice, we don't have a dedicated unix expert/SA - I'll just have to keep muddling through.

I'll post the answer when (if?) I find out what the problem was.

Great site by the way, I've learnt loads from reading other threads.
Sponsored Links
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 12:27 PM.


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