Solved

move users and groups from one linux box to another

Posted on 2003-11-14
7
724 Views
Last Modified: 2013-12-15
I just typed pwunconv and grpunconv to move my users from my one sendmail server to another, but it has now blocked my root user from assiging passwords to any users. Root can still access the box, but cannot chage passowrds and gives message " passwd: User not known to the underlying authentication module" Please help me reseeting root previliges and please tell me ow do I migrate users and groups from one box to another. thanks.Sadiq
0
Comment
Question by:msl110
  • 4
  • 2
7 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 9746620
Sadiq,
I have seen similar problems when using a much stricter /etc/pam.conf.  Can you compare the pam.conf on the two machines?
0
 

Author Comment

by:msl110
ID: 9746760
i have not made the other machine ready yet , but tell me how do i allow root on the first machine to have its old rights back, its now saying User not known to the underlying authentication module" for root, please how do I reset  pwunconv and grpunconv

thanks
Sadiq
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9747621
It may be the missing shadow file that's the problem. I'd try running pwconv & grpconv to convert back to standard forms and see if that fixes it.

FYI: You don't need to convert from passwd/shadow, group/gshadow to move users to another Linux system. You can merge data from the existing files into their corresponding file on the new server with an editor.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:msl110
ID: 9761560
thanks guys, i searched and typed pwconv and grpconv and I was back on defualt and root was fine again. thanks. Now I just need to know how do I migrate my users fomr RedHat 7.3 server , users groups and home directories to RedHat 9 Server. Is there a migration tool. I copied the passwd file and the shadow file but when i log on with the nes username it goes to the bash login. Can anoyone please help, I have more than 100 sendmail users and now I need to go on to RedHat9. thanks

Sadiq
 
0
 

Author Comment

by:msl110
ID: 9761569
<You can merge data from the existing files into their corresponding file on the new server with an editor.>

Please advise me which files to edit and merge, if I want all users , home directories and groups too. thanks

 
0
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 9761640
The files that need to be merged are (all in /etc) passwd, shadow, group, and gshadow. By merging I mean that you'll copy the files from the 7.3 server to your 9 system, changing the names to, say passwd.old, shadow.old, etc. Then with a text editor you'll paste the user lines from the old files into the corresponding RH 9 file, skipping the system accounts. Be careful with passwd & shadow. There needs to be a line for line correspondence between usernames in passwd and in shadow. Don't copy the files from 7.3 over the RH 9 files. There are differences in the system accounts.

You'll also have to copy, preserving ownership and permissions, the user directories from your 7.3 system to the new server. This most easily done by tar'ing /home on 7.3 and unpacking it on 9. If NFS is enabled on the 7.3 system and /home is exported the process would look like:

--on the RH 9 server--
mkdir /mnt/nfs
mount 7.3-server:/home /mnt/nfs
cd /mnt/nfs
tar cf - . | (cd /home; tar xvpf -)
0
 

Author Comment

by:msl110
ID: 9761848
thanks jlevie,

Brilliant , absolutely brilliant. thanks!!!! Sadiq
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question