Re: Use same profile at new server (241 Views)
Reply
Advisor
take2mir
Posts: 31
Registered: ‎09-24-2007
Message 1 of 2 (241 Views)
Accepted Solution

Use same profile at new server

Hi everyone,
Server A at my place was totally crashed and at the moment, we cannot use it. So we decide to use server B as a backup plan while waiting for the server A to be fixed. My supervisor want me to copy .profile from server A to server B and then change the owner of the profile. He said, when you ftp from file from server A to server B, the permission will change to root. I do not understand what he means. Actually what should I do to make sure that users can access the server B without any problem as they access server A before? Thank you..
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 2 of 2 (241 Views)

Re: Use same profile at new server

When you use ftp to copy a file, the file owner is that of the ftp user. A better way to preserve attributes is to use tar or cpio to backup all the .profiles and then ftp the tar or cpio file and extract the data on the target machine. That will preserve the original UID's, GID's, and modes of all the files tranferred. Note that I said UID's and GID's will be preserved; I did not say that owners and groups would be preserved. Those attributes will only be preserved if the passwd and group files are also moved to the new box.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.