[SOLVED] mageia8 install: keep /home of mga7 ?!

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

[SOLVED] mageia8 install: keep /home of mga7 ?!

Postby vmunich » Jul 9th, '21, 10:09

Hi everyone,

my system is running Mageia7, I want to install the new Mageia8.

Usually I don't choose use the upgrader Mga7->Mga8 and do a backup of my /home, then copy the files back when the new Mageia has been installed.

I simply like the idea of having a clean fresh system to (re)start with.

my /home is on a separate partition (different from the partition where / is)

However, my question is: if I don't format my /home, and just install Mageia8 (and create the same user as on my previous Mageia7) , how easy/difficult will it be to have my users be able to use their data/preferences etc.. again
How about permissions ?
Do I have to adjust "manually" UID/GID ?

Thank you
Vincent
Last edited by vmunich on Jul 9th, '21, 13:38, edited 1 time in total.
Vincent
--
Mandrake since 1998, then Mandriva, then Mageia....
vmunich
 
Posts: 53
Joined: Jan 11th, '13, 12:35

Re: mageia8 install: keep /home of mga7 ?!

Postby sturmvogel » Jul 9th, '21, 10:28

If you didn't screw or modified your UID under Mga7, there is absolutely no problem to expect if you keep your home.
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: mageia8 install: keep /home of mga7 ?!

Postby vmunich » Jul 9th, '21, 10:31

Thanks Sturmvogel for your reply.

Will config files (e.g. for browsers, LibreOffice...) be upgraded to the new softwares ?
I probably don't have the same version of Chrome or LibreOffice on the old and on the new system...
Vincent
--
Mandrake since 1998, then Mandriva, then Mageia....
vmunich
 
Posts: 53
Joined: Jan 11th, '13, 12:35

Re: mageia8 install: keep /home of mga7 ?!

Postby sturmvogel » Jul 9th, '21, 12:17

If it is only the version difference between the packages from Mga 7 and 8, then it is usually no problem. If there are changes, the config files get upgraded.
sturmvogel
 
Posts: 678
Joined: Jul 30th, '12, 00:39

Re: mageia8 install: keep /home of mga7 ?!

Postby isadora » Jul 9th, '21, 13:28

Please, don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby vmunich » Jul 9th, '21, 14:01

Done :->

Just a last question: in the case when I do not format my /home and just create the same users I had before the new install, are the permissions then set automatically ?

In other words: if I had a user called USER1 on my mageia7 system, and if I create a user called USER1 on my newly installed mageia8, will USER1 have the same permissions on the same files as he had before the install ???

Best,
Vincent
Vincent
--
Mandrake since 1998, then Mandriva, then Mageia....
vmunich
 
Posts: 53
Joined: Jan 11th, '13, 12:35

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby dalto » Jul 9th, '21, 14:14

vmunich wrote:In other words: if I had a user called USER1 on my mageia7 system, and if I create a user called USER1 on my newly installed mageia8, will USER1 have the same permissions on the same files as he had before the install ???

As long as the UIDs and GIDs are the same, yes. If you create the new users with different UIDs, you will have to alter the permissions on the files to match.

EDIT: You can set the UIDs of the user create during install by clicking on advanced
dalto
 
Posts: 15
Joined: Jun 20th, '21, 20:10

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby artee » Jul 27th, '21, 08:20

Quick comment: it is possible to adjust user UID and GID afterwards too (adjust /etc/passwd and /etc/group as root and logon the user again or reboot), potentially a faster fix than to chown -R [user].[user] /home/[user] and other user owned files (if any).
artee
 
Posts: 35
Joined: Jun 15th, '13, 14:00

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby dalto » Jul 27th, '21, 17:11

artee wrote:Quick comment: it is possible to adjust user UID and GID afterwards too


Yes, you can change it with usermod. For example, if you want to change user bob's udi and gid to 1002 you could do:
Code: Select all
sudo usermod -u 1002 -g 1002 bob


The group must already exist, if you need to change an existing group id you can use:
Code: Select all
sudo groupmod -g 1002 bob
dalto
 
Posts: 15
Joined: Jun 20th, '21, 20:10

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby doktor5000 » Jul 27th, '21, 18:49

Usually at the point where you run usermod to change UID/GID you always have to run chown -R --from because a user gets his home populated from /etc/skel which you would need to fix because those files are not accessible otherwise. A simple login will not fix ownership/group.
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: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] mageia8 install: keep /home of mga7 ?!

Postby zeebra » Jul 28th, '21, 01:43

vmunich wrote:Done :->

Just a last question: in the case when I do not format my /home and just create the same users I had before the new install, are the permissions then set automatically ?

In other words: if I had a user called USER1 on my mageia7 system, and if I create a user called USER1 on my newly installed mageia8, will USER1 have the same permissions on the same files as he had before the install ???

Best,
Vincent


Just an additional comment from someone who almost always use the same /home. The config files in /home are usually just read by program x, which means old setting will persist and you can continue to use program x as before without any additinal setup. This goes for your desktop etc too. That is unless the program/desktop changes the way it reads/uses config files in /home. An example of this is when Mozilla Firefox switched from the old profile system to their new profile system.

So in the end it depends on the software, but usually those config files are used and your software will basically look the same as before you reinstalled Mageia (or any other distro).

Secondly, during the installation process, you can set both the UID and GID of any users you create during the installation. This is very practical in these kind of scenarios, to make sure your new user/UID group/GID matches the old setup. But generally, if you DON*T want to do this manually, you SHOULD set up any users in your new installatiion IN THE SAME ORDER as you did in the old system. Just note down the current UID/GID of your users on your system, then add those users in the new insstallation in the correct order (to get the "correct"/corresponding UID/GID automatically)
zeebra
 
Posts: 125
Joined: Sep 7th, '13, 21:20


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron