Solved

move users and groups from one linux box to another

Posted on 2003-11-14
7
729 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

752 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