Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-06-2003, 09:33 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
How to backup users and groups

I am about to reinstall RH9 because of several newbie mistakes I've made over the past several weeks. I have established several users and groups during this period and don't want to reinput all of this data ( especially passwords ). How do I backup and restore this data ( and which files do I backup ) so this is possible?

BTW - I backed up my /home directory using the command

"tar pcvf home.tar /home"

Will this preserve the permission and owner data when extracted into the new system?

Old 10-06-2003, 09:52 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 266Reputation: 266Reputation: 266
You will also want to backup and save /etc/group, /etc/passwd and /etc/shadow or you will have to recreate the users and groups and assign them their id's, etc.
Old 10-06-2003, 09:53 AM   #3
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
groups are found in /etc/groups
users are in /etc/passwd
passwords are in /etc/shadow

back up those 3 files and restore them to the new system... Make note of the permissions and ownership!
Old 10-06-2003, 10:06 AM   #4
LQ Newbie
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks Guys - you may have saved my life!
Old 10-06-2003, 10:13 AM   #5
LQ Newbie
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Did my tar command preserve permissions and owners?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
users and groups twb2005 Linux From Scratch 2 10-10-2005 01:47 PM
users and groups twb2005 Red Hat 1 10-10-2005 01:47 PM
Backup & Restore Groups and Users jorasmi Slackware 2 03-28-2005 02:24 AM
users and groups Red Squirrel Linux - Newbie 2 02-22-2004 07:37 PM
users and groups krfulton Linux - Security 1 01-05-2004 03:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration