- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR issue
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
04-12-2002 05:12 AM
04-12-2002 05:12 AM
tar: couldn't get gname for gid 65534
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:14 AM
04-12-2002 05:14 AM
Re: TAR issue
Don't worry,
It's only because this is a file that the owner is removed from NIS.
Tar could not find the user on NIS.
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:17 AM
04-12-2002 05:17 AM
Re: TAR issue
It's not important the restore are fine, the only thing is that you remove an owner of a file from your system.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:18 AM
04-12-2002 05:18 AM
Re: TAR issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:19 AM
04-12-2002 05:19 AM
Re: TAR issue
No problem normally.
Unless the tar file is not extracted correctly.
But I pressume it did !
Only username and group id are failing on the system.
Use chown
This to give them a proper owner and group.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:19 AM
04-12-2002 05:19 AM
Re: TAR issue
The data is copied correcly.
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:21 AM
04-12-2002 05:21 AM
Re: TAR issue
You can do an script in oreder to find and change the uname and gname.
Try looking at find manpage.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:21 AM
04-12-2002 05:21 AM
Re: TAR issue
The standard HP-UX 'tar' does not support the archival of files larger than 2GB or files that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process.
A far superior version is the gnu version:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 05:43 AM
04-12-2002 05:43 AM
Re: TAR issue
If your files /etc/passwd and /etc/group or your NIS database don't have any association between the User ID and The Group ID for the files on tape, you will have such warning messages.
But you will still be able to restaure your files.
You still also can re-attribute a new User ID and Group ID for these files after restauring them.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 06:01 AM
04-12-2002 06:01 AM
SolutionI change my false ID's to real ID's using the following command
find . -user "65534" -exec chown real_user_name {}\;
find . -group "65534" -exec chgrp real_group_name {} \;
or if all your files reside under a directory say /data and you had a valid username "john" with valid group"support" you could
chown -R john:support *
If you do this tar will stop complaining.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 06:04 AM
04-12-2002 06:04 AM
Re: TAR issue
Tar does chnage the id owners of the file if the size increases more than 60K . Howeever the safer way is to restore all the files and then may be write a script to find and change the ownership .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 06:10 AM
04-12-2002 06:10 AM
Re: TAR issue
Sounds like the issue is that some of your source files don't have an owner or group id defined on your system. Some consider it a security issue to have such files. They could be files left on the system when a user was deleted, whether the user was defined in /etc/hosts or NIS.
They could have also been extracted from a tarball and the user or group from the tarball wasn't found on your system. Again, you need to check out what the files are, determine if they are needed, and who should own them.
I run find commands on occassion just to see these files and directories. You then need to see if the files are needed or if they were left when a user was deleted and can be removed. The find command I run is:
find / -nouser -o -nogroup | xargs ll -d
You can easily write a script to include the find command above. You could pipe the output to xargs chown userid:groupid but I'd suggest you first list the files and investigate them. You may have an old passwd file that you could check them against to figure out who did own them.
If you do change the ownership, I'd suggest you not blindly change them to be owned by root.
Darrell