linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* installing multuple distributions
@ 2009-02-06  7:55 Pol
  2009-02-06 11:00 ` Adam T. Bowen
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pol @ 2009-02-06  7:55 UTC (permalink / raw)
  To: linux-admin

<posted & mailed>

I would like to test several distributions (say
kubuntu,mandriva,suse,arklinux) without changing my working place, when
switching from one to the other. 
So / /boot /usr /var of each distribution should be on the same partition,
while the /home partition should be shared among all.
Do you think that share /home would give rise to any inconsistencies?

Probably i should make sure that /etc/passwd and /etc/groups are the same in
all distributions.
Do you think it would work?

Thank you
Pol

 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: installing multuple distributions
  2009-02-06  7:55 installing multuple distributions Pol
@ 2009-02-06 11:00 ` Adam T. Bowen
  2009-02-09  8:57   ` Pol
  2009-02-07  2:00 ` Yuri Csapo
  2009-02-11  9:51 ` Glynn Clements
  2 siblings, 1 reply; 8+ messages in thread
From: Adam T. Bowen @ 2009-02-06 11:00 UTC (permalink / raw)
  To: linux-admin

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

Hi,

Pol wrote:
> I would like to test several distributions (say
> kubuntu,mandriva,suse,arklinux) without changing my working place, when
> switching from one to the other. 
> So / /boot /usr /var of each distribution should be on the same partition,
> while the /home partition should be shared among all.
> Do you think that share /home would give rise to any inconsistencies?

No, it should be fine. The only thing to look out for is the use of dot
files in your home directory for configuration of different version of
applications on the different distros. If, for instance, you are trying
out gnome, and the distros have different versions of the various
components that make up gnome, then you might find things "acting
weirdly". I remember having a nightmare with the .gconf configuration
files between different versions. If things start acting up, deleting
these config directories might sort things out.

> Probably i should make sure that /etc/passwd and /etc/groups are the same in
> all distributions.
> Do you think it would work?

Be careful if you intend to merge the different passwd and group files
because different distros may use different default IDs for system
accounts. A fun, but maybe slightly complicated way of doing this, would
be to store your user accounts in LDAP and have the LDAP data files on a
shared partition (/home would do). Make sure all the system users (UID <
100) are stored in each distribution's local /etc/passwd file and set up
your nsswitch.conf so that it reads files and then ldap. Of course if
you are only going to have one user account, then this is *way* over the
top (but it would certainly teach you a lot about LDAP based
authentication).

Hope you enjoy yourself!

Adam


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: installing multuple distributions
  2009-02-06  7:55 installing multuple distributions Pol
  2009-02-06 11:00 ` Adam T. Bowen
@ 2009-02-07  2:00 ` Yuri Csapo
  2009-02-09  8:46   ` [--tech--]Re: " Pol
  2009-02-11  9:51 ` Glynn Clements
  2 siblings, 1 reply; 8+ messages in thread
From: Yuri Csapo @ 2009-02-07  2:00 UTC (permalink / raw)
  To: xtekhne; +Cc: linux-admin

Pol,

Yes, it would certainly work. The important files to look at are, as you 
said, /etc/passwd and /etc/group; but also /etc/shadow. I don't think 
it's a good idea to make them the same because different distros will 
have different ways of doing things and different required 
administrative users and groups; things like lp, admin, etc. All you 
need to do is make sure that your own user entry (and those of other 
users of the system) has the same UID and belongs to the same primary 
group, which should have the same GID. Also, I'd make the passwords the 
same across the distros just to keep sane... Good luck!

Yuri

Pol wrote:
> <posted & mailed>
> 
> I would like to test several distributions (say
> kubuntu,mandriva,suse,arklinux) without changing my working place, when
> switching from one to the other. 
> So / /boot /usr /var of each distribution should be on the same partition,
> while the /home partition should be shared among all.
> Do you think that share /home would give rise to any inconsistencies?
> 
> Probably i should make sure that /etc/passwd and /etc/groups are the same in
> all distributions.
> Do you think it would work?
> 
> Thank you
> Pol
> 
>  
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Yuri Csapo
Academic Computing & Networking
Colorado School of Mines
CT-256
Phone:  (303) 273-3503
Fax:      (303) 273-3475
Email:   ycsapo@mines.edu

Please use the following link to open a service request:
http://helpdesk.mines.edu
===========================================
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [--tech--]Re: installing multuple distributions
  2009-02-07  2:00 ` Yuri Csapo
@ 2009-02-09  8:46   ` Pol
  2009-02-10  9:57     ` Mateusz Marzantowicz
  0 siblings, 1 reply; 8+ messages in thread
From: Pol @ 2009-02-09  8:46 UTC (permalink / raw)
  To: linux-admin

<posted & mailed>

Yuri Csapo wrote:

> Pol,
> 
> Yes, it would certainly work. The important files to look at are, as you
> said, /etc/passwd and /etc/group; but also /etc/shadow. I don't think
> it's a good idea to make them the same because different distros will
> have different ways of doing things and different required
> administrative users and groups; things like lp, admin, etc. All you
> need to do is make sure that your own user entry (and those of other
> users of the system) has the same UID and belongs to the same primary
> group, which should have the same GID. Also, I'd make the passwords the
> same across the distros just to keep sane... Good luck!

yes, i realise /etc/passwd and /etc/group might contain
distribution-specific details
thank you

--P


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: installing multuple distributions
  2009-02-06 11:00 ` Adam T. Bowen
@ 2009-02-09  8:57   ` Pol
  2009-02-09 11:37     ` urgrue
  0 siblings, 1 reply; 8+ messages in thread
From: Pol @ 2009-02-09  8:57 UTC (permalink / raw)
  To: linux-admin


Adam T. Bowen wrote:

> Be careful if you intend to merge the different passwd and group files
> because different distros may use different default IDs for system
> accounts. A fun, but maybe slightly complicated way of doing this, would
> be to store your user accounts in LDAP and have the LDAP data files on a
> shared partition (/home would do). Make sure all the system users (UID <
> 100) are stored in each distribution's local /etc/passwd file and set up
> your nsswitch.conf so that it reads files and then ldap. Of course if
> you are only going to have one user account, then this is *way* over the
> top (but it would certainly teach you a lot about LDAP based
> authentication).

I am not a professional. Is there an easy way to try ldap?
thank you
--P



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: installing multuple distributions
  2009-02-09  8:57   ` Pol
@ 2009-02-09 11:37     ` urgrue
  0 siblings, 0 replies; 8+ messages in thread
From: urgrue @ 2009-02-09 11:37 UTC (permalink / raw)
  To: xtekhne; +Cc: linux-admin

Pol wrote:
> Adam T. Bowen wrote:
> 
>> Be careful if you intend to merge the different passwd and group files
>> because different distros may use different default IDs for system
>> accounts. A fun, but maybe slightly complicated way of doing this, would
>> be to store your user accounts in LDAP and have the LDAP data files on a
>> shared partition (/home would do). Make sure all the system users (UID <
>> 100) are stored in each distribution's local /etc/passwd file and set up
>> your nsswitch.conf so that it reads files and then ldap. Of course if
>> you are only going to have one user account, then this is *way* over the
>> top (but it would certainly teach you a lot about LDAP based
>> authentication).
> 
> I am not a professional. Is there an easy way to try ldap?
> thank you
> --P

LDAP is, despite the name (Lighweight Directory Access Protocol) not
very "lightweight". Unless you already have active directory (which is
basically just ldap), I would consider something a bit simpler like
NIS+. NIS+ is pretty antiquated but if all you want is to share
passwd/group/etc information, it might be an option to consider.
There are other options too, such as Hesiod, but i havent them.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [--tech--]Re: installing multuple distributions
  2009-02-09  8:46   ` [--tech--]Re: " Pol
@ 2009-02-10  9:57     ` Mateusz Marzantowicz
  0 siblings, 0 replies; 8+ messages in thread
From: Mateusz Marzantowicz @ 2009-02-10  9:57 UTC (permalink / raw)
  To: xtekhne; +Cc: linux-admin

On Mon, 2009-02-09 at 09:46 +0100, Pol wrote:
> <posted & mailed>
> 
> Yuri Csapo wrote:
> 
> > Pol,
> > 
> > Yes, it would certainly work. The important files to look at are, as you
> > said, /etc/passwd and /etc/group; but also /etc/shadow. I don't think
> > it's a good idea to make them the same because different distros will
> > have different ways of doing things and different required
> > administrative users and groups; things like lp, admin, etc. All you
> > need to do is make sure that your own user entry (and those of other
> > users of the system) has the same UID and belongs to the same primary
> > group, which should have the same GID. Also, I'd make the passwords the
> > same across the distros just to keep sane... Good luck!
> 
> yes, i realise /etc/passwd and /etc/group might contain
> distribution-specific details
> thank you

... as well as other files in /etc directory. I think it'd be good idea
to have /etc unshared between your Linux distros.

Things that could possibly be problematic when sharing /etc are:
- passwd and group (as mentioned)
- boot scripts in rcN.d and init.d
- PAM configuration (if any is present, but most of Linux distros uses
it)
- other common system config (you'll need to merge all common files
which may be different in various Linux distros)


--
Mateusz Marzantowicz


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: installing multuple distributions
  2009-02-06  7:55 installing multuple distributions Pol
  2009-02-06 11:00 ` Adam T. Bowen
  2009-02-07  2:00 ` Yuri Csapo
@ 2009-02-11  9:51 ` Glynn Clements
  2 siblings, 0 replies; 8+ messages in thread
From: Glynn Clements @ 2009-02-11  9:51 UTC (permalink / raw)
  To: xtekhne; +Cc: linux-admin


Pol wrote:

> Probably i should make sure that /etc/passwd and /etc/groups are the same in
> all distributions.
> Do you think it would work?

Your user accounts should have the same UID/GID if you are planning on
using a common /home partition.

However, you shoudn't modify the system UIDs/GIDs. Bear in mind that
the filesystem stores numeric UID/GID, not user/group names. If you
change the UIDs/GIDs in the passwd and group files, files and
directories will have the wrong owner. Some configuration files may
also use numeric UIDs/GIDs.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-11  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06  7:55 installing multuple distributions Pol
2009-02-06 11:00 ` Adam T. Bowen
2009-02-09  8:57   ` Pol
2009-02-09 11:37     ` urgrue
2009-02-07  2:00 ` Yuri Csapo
2009-02-09  8:46   ` [--tech--]Re: " Pol
2009-02-10  9:57     ` Mateusz Marzantowicz
2009-02-11  9:51 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).