This is a discussion on rcp not running through root login ( running through the userapplication) within the Sco Unix forums, part of the Unix Operating Systems category; --> I have 3 applications running in my main and back up server. RCP command is running when i log ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have 3 applications running in my main and back up server. RCP command is running when i log in thorugh the applications as user. However, the rcp is not running through root. Can someone please help Gagan |
| |||
| 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 |
| |||
| ----- 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! |
| ||||
| On Dec 8, 1:49 pm, "Brian K. White" <br...@aljex.com> wrote: > ----- Original Message ----- > From: <agnihot2...@yahoo.com> > > Newsgroups: comp.unix.sco.misc > To: <dis...@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 br...@aljex.com http://www.myspace.com/KEYofR > +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. > filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!- Hide quoted text - > > - Show quoted text - THANKS A LOT I MISSED THAT PART FILE PERMISSIONS HAVE TO BE 600 FOR RHOSTS THANK U AGAIN GAGAN |