Operating System - HP-UX
1832300 Members
2015 Online
110041 Solutions
New Discussion

Re: rcp working fine until /etc/passed file copied over

 
SOLVED
Go to solution
Brent Hardesty
Advisor

rcp working fine until /etc/passed file copied over

I am in the early stages of bring up new servers. I had rcp working fine from old server to new server. I began coping over users.../etc/group, /etc/logingroup and /etc/passwd. Once /etc/passwd file was copied over I can no long rcp. I can login into the new server as any user from the old server just fine. Any ideas on why rcp is now failing?
Thanks for any help
Brent
14 REPLIES 14
Uday_S_Ankolekar
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

Hello:
your .rhosts file and hosts.equiv in /etc have the host entries correct ??

Good Luck..
Ron Cornwell
Trusted Contributor

Re: rcp working fine until /etc/passed file copied over

Do you have a copy of the /etc/passwd before the rcp if you do compare each field of the user that you are using to do the rcp. You could have home directory in a different place which means the .rhosts file for that user would not be found.
Brent Hardesty
Advisor

Re: rcp working fine until /etc/passed file copied over

Yes, I have the host names of my new server in my old servers .rhost file. We do not use hosts.equiv on neither new or old host.

The only thing that changed was the addition of the /etc/passwd file copied over. If i move the old /etc/passed file back on the new server I can rcp again.

thx
Bill McNAMARA_1
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

were the uids and gids all the same?
did you also rcp over /etc/group?

Bill
It works for me (tm)
Brent Hardesty
Advisor

Re: rcp working fine until /etc/passed file copied over

Ron: Yes, I have the old /etc/passwd and did a compare. They look the same. FYI, I am rcp'ing as root. So the home directory should not change.

Bill: Yes, I copied over /etc/group and /etc/logingroup before I did /etc/passwd to try and avoid have different uid's and gid's. So uid's and gid's should all be the same now.....

thx
MANOJ SRIVASTAVA
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

Hi Brent

1.Check for the home directory defined for root in the new passwd file , in case it has got changed , or try just doing a cd it should take you to the home directory for root.

2. If this is correct then try doing a rlogin to the other server , incase it goes w/o asking the passwd then u can do rcp w/o a problem .

3. Aslo sometimes in .rhosts try putting the real IP address and the user name in place of the hostname ? just in case there is something wrong with /etc/hosts.


Manoj Srivastava
Bill McNAMARA_1
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

reset the root passwd via the passwd command on the machine you rcp'd to.
It's not some kind of trusted system with /etc/shadow etc?

Do you see any files on the rcp'd host with numeric owners/groups?
Does remsh work?
remsh server2 "ls /"

Are the permissions the same?

Make sure there are no spaces in the password file.

Bill
It works for me (tm)
Paula J Frazer-Campbell
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

Hi
Check for white space at the end of password entry.

Paula
If you can spell SysAdmin then you is one - anon
Brent Hardesty
Advisor

Re: rcp working fine until /etc/passed file copied over

Bill: Changed the password but that didnt help. The ownership of /etc/group and /etc/passwd were diffenent. I changed them to the correct ownership..root:sys but that didnt help either. Everything else appears to be the same....there are no numeric entrys for group or users...

There are no white spaces in the /etc/passwd file. I am able to login the new server just fine as root with the new passwd.

Still lost....but thanks so far for everyone's ideas....points will follow when this is solved or ideas are exusted.

Thanks,
Brent
Bill McNAMARA_1
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

Does remsh and rwho and rlogin work.?

Did you reboot the system since doing this?

I've done it before with no pb on a 700 series when sam chewed up my passwd and group file... no problem, only difference was I didn't use rcp, I used ftp.

With copy there is a -p to preserve sam file properties... with rcp I'm not sure.. but you seem to have corrected all permission problems.

Bill
It works for me (tm)
Paula J Frazer-Campbell
Honored Contributor

Re: rcp working fine until /etc/passed file copied over

Hi Brent

Taking a step back:-

You said in your question "servers" :-

Is this the first server that you have done this on?

Paula

If you can spell SysAdmin then you is one - anon
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: rcp working fine until /etc/passed file copied over

Hi Brent
In case you are able to login with a passwd then there is a problem.

1. Try doing from the other machine to this machine.

2. Change in .rhosts file the name and user to IP adress and User name , in both the machines.
I hope the user name is root only.


Manoj Srivastava
Brent Hardesty
Advisor

Re: rcp working fine until /etc/passed file copied over

Paula: Yes this the first server I am working on....

Bill: yes I used the -p when using rcp
I can rlogin from old server to new server but it does prompt me for the password...it works. However, I can not remsh from old to new server. However, I can remsh from old to other new servers that have not been updated with new /etc/passwd, /etc/group, and /etc/logingroup files.

In my opinion...it has to be something on the 'new' server that is not correct or has changed with the addition of the /etc/passwd file...


Brent
Brent Hardesty
Advisor

Re: rcp working fine until /etc/passed file copied over

WORKING!!!!!!!!!!

Manoj- I added the ip address of old server in new server .rhost file and it now works...bit confused on why this had to be added after /etc/passwd was copied over...?

THANK YOU TO ALL WHO HELPED SOLVE MY FRUSTRATING PROBLEM!!!!!!!!!!!!