Page 1 of 1

Mageia5 install, how to reassign /home/user properly?

PostPosted: Jun 26th, '15, 12:29
by vincentm77
First: Mageia 5 installed great on my Lenovo B5400.
The problems I had with the wlan adapter (RTL8723BE PCIe Wireless Network Adapter not working with Mageia 4) are gone. Great job !

Then:
For my install, I chose to format / (clean install) but I kept my /home from the previous Mageia4 installation.

This /home contains 2 folders for user1 and user2.

During the install process, I created a user (user1), and this user was automatically assigned his "previous" home-directory /home/user1

Now (after install and reboot...), I created a second user (user2), and had the assistant (userdrake) to assign /home/user2 to user2... which didn t work.

My question:
I have a user directory in /home, let s say /home/previous-user , and I want to recreate that user (new-user) and assign him this directory. How can I do that ?
Obviously, if possible, I would like permissions to be preserved (files belonging to previous-user should still belong to new-user...

Thanks for your help
Vincent

Re: Mageia5 install, how to reassign /home/user properly?

PostPosted: Jun 26th, '15, 19:06
by doktor5000
Get the output of ls -aln /home and create a new user with whatever name you like but be sure to specificy UID and GID as in the home folder of that user,
then you don't need to change anything else, only to make sure you get the group memberships right. Simply use your current user as a good configuration and apply the same additional groups to the other user.