Re: How do I migrate users to new Fedora installation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2007-09-22 at 12:56 -0500, Mikkel L. Ellertson wrote:
> Craig White wrote:
> 
> > always risky to edit /etc/passwd /etc/shadow & /etc/group manually.
> > 
> > make backup copies first
> > 
> > be certain to add the exact matching lines from /etc/passwd
> > & /etc/shadow from the old versions to the new.
> > 
> > I feel the obligation to add that if you were using LDAP for backend
> > authentication, this would be a much simpler process.
> > 
> > Craig
> > 
> Making backups is always good advice. It is also a good idea to use
> vipw and vigr to edit them. If you do not like using vi, you can set
> EDITOR to your preferred editor first. The reason to use vipw
> instead of using the editor directly is that it sets the locks so
> you only have one program changing the file at a time.
> 
> Thinking about it, it might be as easy to create a script that grabs
> the user name and password out of the passwd and shadow files, and
> feed it to useradd or adduser if they are only mail accounts. If the
> UID changes, it should not be a problem if you are using tar or
> rsync to move the mail files. (You need the correct options, and you
> have to run as root.) They can match on user name instead of UID.
> 
> If you need to preserve the UID and GID, you can grab that
> information also, and feed it to useradd. But if you do not to do
> it, this gives you a chance to "defragment" the UIDs and GIDs.
----
webmin <http://www.webmin.com> Users and Groups module has the ability
to import a list of users or groups from files but you do have to
combine the passwords from the old system's /etc/shadow into the old
system's /etc/passwd into one file before you can import into webmin.
The import format is very similar to /etc/passwd itself but on a RH
system, the second field is a * which represents the entry
in /etc/shadow whereas the import file would require that you substitute
the password where the asterisk is.

Craig

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux