Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
I'm running 2 distributions, Gentoo and SuSE, I installed SuSE first and created a partition for /home, now I would like to use that same partition for home with gentoo, I can create a new user, but my question is, if I have a user, for example patrick, with SuSE, I have the /home/patrick directory, now, can I create a patrick user with Gentoo and use the same /home/patrick directory with reading and writing atributions??
Thanks
Distribution: Linux & Everything else on VirtualBox
Posts: 144
Rep:
I share the /home directory with several distributions with no major problems. The main concern is that different distros will give users different default gid/uid settings. Just make sure in /etc/passwd on both distributions that patrick has the same uid/gid and everything should work fine.
Yes, just make sure the UID (user id) and name is the same for both. I like my main user to have a uid of 500, because that is what it was when I first installed.
If it happens to be different and doesn't work, give this command:
chown -R 500.500 /home/<user>
or
chown -R <user>.<user> /home/<user>
That will reset the owner.group to the new install.
Distribution: Linux & Everything else on VirtualBox
Posts: 144
Rep:
What I always do is to install the distro not using my /home partition. Then I will boot the new distro and mount my /home on /mnt/tmp. Now I can change my home directory to /mnt/tmp and login. If everything works OK then I edit /etc/fstab to automatically mount my /home partition. You can remove /home off the new distro to give you more space on the / partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.