- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: copying /etc/group & /etc/passwd file
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
02-07-2007 11:19 PM
02-07-2007 11:19 PM
copying /etc/group & /etc/passwd file
I am building a new server I want to copy all ids and groups from old to new server. What is the best way to do that using tar commnad?
thanx for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 11:25 PM
02-07-2007 11:25 PM
Re: copying /etc/group & /etc/passwd file
tar -cvf /dev/rmt/0m /etc/passwd /etc/group
- then -
tar -x
to extract.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 11:28 PM
02-07-2007 11:28 PM
Re: copying /etc/group & /etc/passwd file
$ tar -cvf pass_gr.tar /etc/group /etc/passwd
And to untar:
# tar -xvf pass_gr.tar
If you want to copy the files but merge the contents, you don't want to use absolute paths:
$ tar -cvf pass_gr.tar -C /etc group passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 11:32 PM
02-07-2007 11:32 PM
Re: copying /etc/group & /etc/passwd file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 12:44 AM
02-08-2007 12:44 AM
Re: copying /etc/group & /etc/passwd file
don't forget /home, or where ever you have the user's individual data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 12:51 AM
02-08-2007 12:51 AM
Re: copying /etc/group & /etc/passwd file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 12:57 AM
02-08-2007 12:57 AM
Re: copying /etc/group & /etc/passwd file
Be attentive to enhanced security requirements/files.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 01:53 PM
02-08-2007 01:53 PM
Re: copying /etc/group & /etc/passwd file
you can go for tar command or just simply copy & paste. but then chcek permissions on the file finally from security point of view.
Thanks,
Reshma