Solved

move users and groups from one linux box to another

Posted on 2003-11-14
7
720 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:msl110
Comment Utility
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
Comment Utility
<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
Comment Utility
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
Comment Utility
thanks jlevie,

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now