LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-06-2003, 10:33 AM   #1
delstel
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?

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

Rep: Reputation: 234Reputation: 234Reputation: 234
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, 10:53 AM   #3
Blinker_Fluid
Member
 
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, 11:06 AM   #4
delstel
LQ Newbie
 
Registered: Aug 2003
Posts: 12

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

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

Thanks
 
  


Reply


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 02:47 PM
users and groups twb2005 Red Hat 1 10-10-2005 02:47 PM
Backup & Restore Groups and Users jorasmi Slackware 2 03-28-2005 03:24 AM
users and groups Red Squirrel Linux - Newbie 2 02-22-2004 08:37 PM
users and groups krfulton Linux - Security 1 01-05-2004 04:43 AM


All times are GMT -5. The time now is 04:18 AM.

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