Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.