Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Permissions and Ownerships

Status
Not open for further replies.

rweir

MIS
Jul 9, 2001
26
US
We just migrated a AIX cluster to new hardware and used the RCP command to copy database files over to the new system. Unfortunately, the installer did not use the option to copy permissions and we are now running into a few minor issues.

We are now 100% on the new hardware (and have been for days), so we can't copy the files from the old servers since the data is outdated. Thousands of files are incorrect, so to manually perform the change would be a pain.

Is there a UNIX command that will just copy permissions and ownership and not the file contents, from the older boxes?
 
Maybe rsync or rdist would help you. I didn't tested it when files are different on source and dest, but I thhing there should be a possiblitity to update permissions only, doesn't matter files source/dest files changed (important file location)

You should test it on test env before.

Here is a -p switch of rsync command:

-p, --perms
This option causes rsync to update the remote permissions to be
the same as the local permissions.
 
you right MoshiachNow, the rsync is not a part of AIX.

But you can get it from AIX Toolbox for Linux...

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/rsync/rsync-2.6.2-1.aix5.1.ppc.rpm

required dependencies:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/rpm/popt-1.7-1.aix4.3.ppc.rpm


Again, I am not sure this is a solution to rweir's problem - it should be tested before - I have no AIX box near me so I can't.


r, m.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top