rcp gives "Permission Denied"???

rcp gives "Permission Denied"???

Post by Peter Stee » Fri, 24 Apr 1992 08:35:47



Yes, I have a .rhosts file. I've put just about everything in it I can
think of, including

            fred
            FRED
            Fred
            fred.acadiau.ca
            FRED.ACADIAU.CA
            Fred.AcadiaU.CA
            <ip #>

But, if I try something like this on fred:

            rcp file barney:file

I always get permissioned denied. Only Barney is acting this way. Other
local hosts I've tried work. The main difference is that Barney is MIPS
box and all the others are Suns. To confuse matters more, earlier today
the rcp command worked for Barney as well. During the day I've installed
DNS and built a new libc.so, on Fred, not on Barney. Something is making
the remote machine barney not see remote copy commands from "fred" as
coming from "fred". The only way I can get it to work is by putting
a "+" sign in the .rhosts file, which of course is undesireable. If any
one has any ideas how I can debug this I appreciate hearing from you.

Thanks.

--

Acadia University, Wolfville, NS   Tel: 902-542-2201   Fax: 902-542-4364

 
 
 

rcp gives "Permission Denied"???

Post by Marc Rossn » Sat, 25 Apr 1992 05:23:51



> Yes, I have a .rhosts file. I've put just about everything in it I can
> think of, including

.
.

Quote:> But, if I try something like this on fred:

>        rcp file barney:file

> I always get permissioned denied. Only Barney is acting this way. Other
> local hosts I've tried work. The main difference is that Barney is MIPS
> box and all the others are Suns. To confuse matters more, earlier today
> the rcp command worked for Barney as well. During the day I've installed
> DNS and built a new libc.so, on Fred, not on Barney. Something is making
> the remote machine barney not see remote copy commands from "fred" as
> coming from "fred".

I assume you can telnet from fred to barney OK, so you no that your DNS
name resolution with the new libc.so is working OK.

Idea #1

Take a careful look at the rcp executable on fred (i.e. "file /usr/ucb/rcp")
It may not be "dynamically linked" -- in which case your new libc.so is of
no use.  rcp may still be working with other machines if they happen to
also be in your local /etc/hosts.  For some reason this is the way my Sun
came set up -- telnet and ftp, etc. were dynamically linked, but I had
to swipe (er .. borrow, yeah, that's the ticket) a dynamically linked rcp
from elsewhere.

Idea #2

Name resolution on a MIPS is a little strange.  There is an extra file
/etc/vis.conf that contains special keywords that the system uses to
figure out how to do name resolution.  Mine (I want it to use DNS which
is running elsewhere on a Sun) has one line which reads:

host: dns files

which tells the MIPS to try the name server listed in /etc/resolv.conf first
and then /etc/hosts second.

Note that your MIPS only knows that it is receiving an rcp request from
some a.b.c.d internet address; barney is then trying to "unresolve" this
name either with a name server or locally and then match the name to something
in .rhosts.  

So see if you can figure out what the MIPS thinks its doing. (some help, huh?)

Marc Rossner


 
 
 

1. "weof" operation in "mt" command gives "permission denied"

Hi,

Some time ago I made a mistake and deleted my /dev directory.  Since
then, I have had to occasionally run the "mknod" command to create a
device here and there.  I did have a directory list of /dev, and I have
used that as a guide for which major and minor node numbers to use, and
which type of file to create.

Anyway, my Exabyte 8200 is /dev/nrst0, which is listed as:

  crw-rw-rw-   1 root     wheel      9, 128 Oct 29 09:30 /dev/nrst0

I am trying to write 2 eof marks after the end of file 0, so that I can
re-write file 1.  The sequence that I use for this on the the same tape
at work (and this works just fine) is:

  1) mt -f /dev/nrst0 asf 1   position after the first eof (after file 0)
  2) mt -f /dev/nrst0 bsf 1   position before the first eof
  3) mt -f /dev/nrst0 weof 2  make it look like file 0 is only file on tape
  4) mt -f /dev/nrst0 bsf 1   position after the first eof

When I try this with linux, the weof command (step 3) results in:

  mt: /dev/nrst0: Permission denied

Is this a problem with the driver, or is there something wrong with my
device definition.  According to the man page, I should be able to do
this under Linux pretty much the same as it works under SunOS.

There is no problem writing to the tape otherwise.

I have Slackware 2.x.

thanks,
tw

2. A MS VPN client through an iptables FW

3. rcp giving "rshd: 0826-813 Permission is denied" when trying copy

4. sunview over solaris 2.3/2.4

5. NCSA 1.4 giving false "file permissions deny server access" errors

6. What does kill -0 mean?

7. INN gives 408 error "transfer permission denied"

8. tput for hp ux/7.0

9. Why does rsh give "Permission denied"?

10. ftp: "login failed" & rcp: 'Permiision Denied"

11. How to "rcp"/"rsh" as "root"?

12. GETSERVBYNAME()????????????????????"""""""""""""

13. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""