LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-01-2003, 10:04 PM   #1
aeruzcar
Member
 
Registered: Jul 2003
Location: Santiago, Chile
Distribution: Gentoo
Posts: 282

Rep: Reputation: 30
Share /home Directory


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
 
Old 09-01-2003, 10:10 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Yes, you should be able to do it. But I wouldnt. The only thing i'd share would be swap.

Basically, you are taking some risks in screwing up permissions and settings.

Most of your user settings are stored in your HOME directory. So if you change a settings in Gentoo (or vice versa) it could screw up your setup.
 
Old 09-01-2003, 10:15 PM   #3
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
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.
 
Old 09-01-2003, 10:17 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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.
 
Old 09-02-2003, 01:26 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
To avoid messing up your personal configurations, use the same version of programs for the different installs.
 
Old 09-02-2003, 07:50 PM   #6
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
Possible to share Home directory between SUSE 9.3 and Red Hat Enterprise Linux 4? Paramjeet Linux - Newbie 7 05-26-2005 09:29 PM
Samba :share files from home directory to an other user flashdelux Linux - Software 0 11-29-2004 12:57 PM
Can I share my /home directory.. GhostInDarkness Linux - Newbie 7 08-28-2003 03:02 PM
Share home directory cruella Linux - Newbie 4 01-22-2002 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration