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 12-03-2003, 06:24 AM   #1
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Rep: Reputation: 15
Saving users, groups and permissions in Red Hat 9

Hi there,

I was wondering if there's a way to save the users and passwords that I've created so far with folder permissions in a Red Hat 9 installation. I'm having problems with the server and I think that the best solution is to reinstall it, but I don't want to lose my users and permissions. I have mounted /home in a separate physical RAID disk, so the files will be preserved.

Is this possible? Any help will be greatly appreciated. Thanks!
Old 12-03-2003, 07:13 AM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
copying /etc/passwd and /etc/shadow is a must, and if you're using any other auth system (eg: ldap) you'll want to back that up as well

'cp -pR' /home will copy and preserve uid/gid/permissions and recurse directories

Of course this covers just the bare minimum - there amy be a lot of files in /etc/that you will want to keep (and maybe some that are part of your current problem)

If you're sure that you or someone else borked the server somehow then maybe a reinstall is in order. Maybe. You might be better off posting a question on how to find and fix the problem, epecially if you're on a more or less default install. Just my $0.02
Old 12-03-2003, 01:26 PM   #3
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15

Thanks for your reply. In fact, I considered all the possibilities before thinking in formatting the machine. The problem started when I tried to update the kernel, and the computer didnīt boot anymore. I tried reinstalling over the old files, and the system was left in an unconsistent state. Apparently, the server is ok, but when I tried to install a backup software, it didnīt work. I tested it in another box with the same operating system and it installed flawlessly. In conclusion, Iīm gonna reinstall the server, taking advantege that it is not in production right now, to achieve stability and reliability before itīs too late (more applications, more users, etc.)

Iīll post back my results after performing the reinstall, regarding users and permissions.

Thanks for your help again.


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
creating groups, adding users, and setting permissions bowie101 Linux - Newbie 2 11-23-2005 12:42 PM
users/groups and permissions.... muman Linux - Newbie 2 09-21-2004 11:20 AM
users, groups, and permissions mcd Linux - Newbie 3 05-26-2004 09:06 PM
Users, groups, permissions - specific task question Doctafonk Linux - General 2 04-21-2004 09:05 PM
Explanations for Networking and users permissions in Red Hat 9 marinovedder Linux - Networking 1 01-08-2004 06:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 AM.

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