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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby vincentm77 » Jun 26th, '15, 12:29

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
vincentm77
 
Posts: 59
Joined: Sep 5th, '13, 16:56

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

Postby doktor5000 » Jun 26th, '15, 19:06

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: Google [Bot] and 1 guest