- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- frecover - Preserving input user id
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 10:31 AM
06-25-2002 10:31 AM
frecover - Preserving input user id
1- take tape backup on SystemA using fbackup
2- mount tape on SystemB
3- NFS mount filesystem of SystemC on SystemB
4- recover through NFS mounts using frecover on SystemB.
Unfortunately some userids are different (number) on each system, specifically on SystemB.
"frecover" restores the files on SystemC with the SystemB userids instead of the intended SystemA userids.
I have tried the -O option: no good because it recovered everything with the SystemB userid of the processing user.
Any suggestions on a clean / clear / efficient way of solving the problem?
Are there frecover options that will bypass the problem?
I could change the SystemB userids but then, how do I correct ownership and permissions for all existing files etc... ?
Magic would be nice too...
Take care!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 10:34 AM
06-25-2002 10:34 AM
Re: frecover - Preserving input user id
Unix does not store the user name with the file. It identifies the file owner with the user id and group id. So if the uid is different on the system the data is restored, it will be owned by the user who has that user id on the restored system. there is no workaround, except change the ownership manuallu once the data is restored.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 10:37 AM
06-25-2002 10:37 AM
Re: frecover - Preserving input user id
I am afraid that unless the UID and GID on each machine is the same then this problem will happen.
The files you are recovering have UID and GID information and when they arrive on the server the OS will try to match the UID and GID with entries in the /etc/passwd and /etc/group file.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 10:42 AM
06-25-2002 10:42 AM
Re: frecover - Preserving input user id
just a thought ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 10:44 AM
06-25-2002 10:44 AM
Re: frecover - Preserving input user id
The name of a user is only an alias for the *number* or uid. If the uid in question doesn't exist on the receiving system, an 'ls' of the file will show the untranslated uid. If uid=100 is "joe" on the sending system but "sam" on the receiving one, then a file moved from sending to receiving system will belong to "sam".
You can use 'find' to isolate all files that have user ids (uid) that are not represented in the password database:
# find /home -nouser
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:03 AM
06-25-2002 11:03 AM
Re: frecover - Preserving input user id
I plan on updating /etc/passwd and then
finf / -user
Any problems with the above?
Besides that, just trying to be tricky, is there any way to fool the frecover shell (and only that shell) into using an alternate /etc/passwd?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:42 PM
06-25-2002 12:42 PM
Re: frecover - Preserving input user id
It is easy to keep this info in a spreadsheet.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:13 PM
06-25-2002 01:13 PM
Re: frecover - Preserving input user id
You indicate that you plan on "updating /etc/passwd". If by that, you mean defining an account whose uid is the same as that of the files you copied in, then you're done! That is, you don't need to find/chown anything. Remember, the inode for a file or directory holds the *uid*. It's the password database (e.g. /etc/passwd) that provides the number-to-name translation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 06:13 AM
06-26-2002 06:13 AM
Re: frecover - Preserving input user id
So when restoring, the /etc/passwd and /etc/group (or equivalent) files on the system where frecover runs should have the proper name->ID mapping, because *UNIX*/HP-UX uses *IDs/numbers* for most of its functions.
So, assuming you want the user and group *names* to match between SystemA and SystemC:
SystemA's *names* should be present in SystemB's /etc/passwd and /etc/group files, but can use other *IDs/numbers* than SystemA
*and*
SystemC should use the same /etc/passwd and /etc/group entries as SystemB.
In short: C must match B, but B does not have to match A.
For your information: cpio(1), tar(1) et al, store the user and group *IDs/numbers* in the archive, so for those the solution is different.