Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can arch and gentoo use the same home partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ItWasntMe
n00b
n00b


Joined: 02 Nov 2013
Posts: 4

PostPosted: Sun Nov 03, 2013 7:47 pm    Post subject: [SOLVED] Can arch and gentoo use the same home partition? Reply with quote

I know I mentioned a dirty word in the subject for this forum. It's hard to know where this one fits so, if it should be moved please do so.

Here's my situation. This is my home system. On my drive I currently have Windows, Arch and now Gentoo. The Arch grub2 is handling the booting for now. Though I still have a long way to go to get Gentoo to something I'd use on a daily basis, it does boot. If Gentoo works out, I'll probably get rid of Arch but, at the moment I have both. Is it possible for Gentoo and Arch to use the same home partition? I'll be using separate home dirs for the users to keep config files separate. I don't see why it can't be done but. I've never heard of anyone doing it either. Swap partitions yes but, not home partitions. So, please educate me here. If I can't do it, why not? If I can do it, I'll have learned something. So, I'm looking forward to the answer...thanks!
_________________
Some people bring happiness wherever they go; others whenever they go. -- Oscar Wilde


Last edited by ItWasntMe on Sun Nov 03, 2013 9:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Sun Nov 03, 2013 9:16 pm    Post subject: Reply with quote

ItWasntMe,

Welcome to Gentoo.

Its not quite as simple as separate users but it can be done. You are on the right track.

The userIDs need to be unique across arch and gentoo.
On arch make two users, they will probably be userID 1001 and 1002.
Do the same on Gentoo. Its important that you make the users in the same order. They should have the same userIDs

Use one user on arch, the other on Gentoo.

You can edit /etc/passwd to prevent you logging in at the wrong user, or at user create time set the login shell to /bin/false
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ItWasntMe
n00b
n00b


Joined: 02 Nov 2013
Posts: 4

PostPosted: Sun Nov 03, 2013 9:44 pm    Post subject: Reply with quote

Thanks very much for the reply.
_________________
Some people bring happiness wherever they go; others whenever they go. -- Oscar Wilde
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9233

PostPosted: Mon Nov 04, 2013 4:32 am    Post subject: Reply with quote

NeddySeagoon wrote:
On arch make two users, they will probably be userID 1001 and 1002.
Do the same on Gentoo. Its important that you make the users in the same order. They should have the same userIDs
Or, more reliably, explicitly specify the uid when creating the users, just verify their numerical values under Arch and use those when creating the accounts under Gentoo.
NeddySeagoon wrote:
You can edit /etc/passwd to prevent you logging in at the wrong user, or at user create time set the login shell to /bin/false
If you want to disable access to an account set the expiry date to have already expired, either when creating the account or with usermod, {-e,--expiredate} 1969-12-31. Locking the account by changing the password field can also be done with usermod, reducing the likelihood of accidentally modifying something in an unintended fashion, using the {-l,--lock} option.

Also, be sure to not create or populate the home directories when creating the users on the systems you want to avoid using them with, especially if your accounts already contain your preferred configuration files.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Nov 05, 2013 12:46 pm    Post subject: Reply with quote

You can't easily use a common home directory with two OSes, or with two versions
of one OS - there's too much configuration data in the dot files. What I generally
do is add a second home directory under a different name, editing /etc/passwd
accordingly. Then logging in to an OS gets me the appropriate directory, and since
both home directories have the same UID I can easily copy stuff between them.


Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum