1 |
On Saturday 31 May 2003 04:53 am, Martin Lesser wrote: |
2 |
> I don't see any benefits of developing and/or maintaining a predefined |
3 |
> /etc/passwd with more than exactly one entry for root. |
4 |
|
5 |
I'm quite tempted to agree with you, but one problem does come to mind. Unless |
6 |
I'm missing something, it's important enough to prevent such an approach. |
7 |
|
8 |
Say any one of three things happens: |
9 |
1) Your computer has problems and you want to move the drive onto a friend's |
10 |
system to repair it. |
11 |
2) You loose / but not /usr, /var, whatever. You reinstall / but keep the |
12 |
other undamaged partitions. |
13 |
3) You get hacked and have to replace /, but certain other filesystems contain |
14 |
only data and therefore are safe to keep |
15 |
|
16 |
The common thread is that you want to mount a filesystem on a system with a |
17 |
/etc/passwd different from the one that filesystem was created under. |
18 |
|
19 |
Unlike applications, the filesystem can't look at /etc/passwd for the UID/GID |
20 |
mappings. If the mappings on different machines aren't' the same, you can't |
21 |
easily move a drive to another machine and mount it. |
22 |
|
23 |
If you emerge packages in a different order, the UID/GIDs in the new |
24 |
/etc/passwd will be dynamically generated differently, and won't match those |
25 |
in the old system. Changes in ebuild interdependencies would cause this to |
26 |
happen even if you issue the exact same sequence of emerge commands. |
27 |
|
28 |
I can see it being a huge practical advantage to know that two installs will |
29 |
have the same UID/GID assignments, and therefore that disk drives can be |
30 |
moved between them without mismatches. |
31 |
|
32 |
Evan |
33 |
|
34 |
|
35 |
-- |
36 |
gentoo-dev@g.o mailing list |