View Single Post

   
  #3 (permalink)  
Old 02-16-2008, 05:09 AM
Brian K. White
 
Posts: n/a
Default Re: rcp not running through root login ( running through the user application)


----- Original Message -----
From: <agnihot2001@yahoo.com>
Newsgroups: comp.unix.sco.misc
To: <distro@jpr.com>
Sent: Saturday, December 08, 2007 2:29 AM
Subject: Re: rcp not running through root login ( running through the user application)


> Adding further to my query above .
> I am goin with an assumtion that since only at root, rcp is not
> running, would imply that the permissions are not same in both server
> for root user.
>
> I have 2 directories with different owner and group in both the
> server.
> Does it have an effect.
> OPT and U (lost and found)
>
> Can anyonehelp why the rcp is not happening at root level.
> (rcp is working if i login as a user)
>
> Gagan


man rcp?

Everything is all spelled out in the man page already, just read that.

Since you haven't said _anything_ about the problem it's kind of impossible to say why it's not working. For all we know "it's not working" because the machines are both turned off.
So, read man rcp, read the various other man pages in the see also section, take some sort of stab at doing what it says, then tell us exactly what you did and exactly what happened and exactly what you wanted to happen, and then we will be able make meaningful suggestions and/or explain any parts of the man page that you don't understand.

Putting on the clairvoyance hat...

The r-utilities all treat root differently than users in that the /etc/hosts.equiv file is used for users (as well as users own ~/.hosts files if they exist) but root only uses ~/.rhosts (which is /.rhosts) also remember that .rhosts must be owned by root and chmod 600 or else it is ignored, and that the hostnames listed in there must match whatever the client machine's hostname or ip will look like to the host when the client connects. ie: telnet in from the client you will be rcp-ing from, and run who -umx
Whatever it shows to the right of your tty, that is what should appear in .rhosts or else a match will not be found and no permissions granted. For speed reasons, if it's a static lan ip that isn't in dns, then I'd list the ip in /etc/hosts and give it whatever name you like, and put that name in .rhosts
This way when the various server daemons try to resolve the clients host name, they find something immediately in /etc/hosts instead of trying, waiting, & failing to resolve it via dns.


Brian K. White brian@aljex.com http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!

Reply With Quote