| … | |
… | |
| 6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
6 | PEP, see http://www.python.org/peps/pep-0001.html for instructions and links |
| 7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
7 | to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! |
| 8 | --> |
8 | --> |
| 9 | <head> |
9 | <head> |
| 10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 11 | <meta name="generator" content="Docutils 0.3.3: http://docutils.sourceforge.net/" /> |
11 | <meta name="generator" content="Docutils 0.3.9: http://docutils.sourceforge.net/" /> |
| 12 | <title>GLEP 27 -- Portage Management of UIDs/GIDs</title> |
12 | <title>GLEP 27 -- Portage Management of UIDs/GIDs</title> |
| 13 | <link rel="stylesheet" href="tools/glep.css" type="text/css" /> |
13 | <link rel="stylesheet" href="tools/glep.css" type="text/css" /> |
| 14 | </head> |
14 | </head> |
| 15 | <body bgcolor="white"> |
15 | <body bgcolor="white"> |
| 16 | <table class="navigation" cellpadding="0" cellspacing="0" |
16 | <table class="navigation" cellpadding="0" cellspacing="0" |
| … | |
… | |
| 22 | <td class="textlinks" align="left"> |
22 | <td class="textlinks" align="left"> |
| 23 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
23 | [<b><a href="http://www.gentoo.org/">Gentoo Linux Home</a></b>] |
| 24 | [<b><a href="http://www.gentoo.org/proj/en/glep">GLEP Index</a></b>] |
24 | [<b><a href="http://www.gentoo.org/proj/en/glep">GLEP Index</a></b>] |
| 25 | [<b><a href="./glep-0027.txt">GLEP Source</a></b>] |
25 | [<b><a href="./glep-0027.txt">GLEP Source</a></b>] |
| 26 | </td></tr></table> |
26 | </td></tr></table> |
| 27 | <div class="document"> |
|
|
| 28 | <table class="rfc2822 field-list" frame="void" rules="none"> |
27 | <table class="rfc2822 docutils field-list" frame="void" rules="none"> |
| 29 | <col class="field-name" /> |
28 | <col class="field-name" /> |
| 30 | <col class="field-body" /> |
29 | <col class="field-body" /> |
| 31 | <tbody valign="top"> |
30 | <tbody valign="top"> |
| 32 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">27</td> |
31 | <tr class="field"><th class="field-name">GLEP:</th><td class="field-body">27</td> |
| 33 | </tr> |
32 | </tr> |
| 34 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">Portage Management of UIDs/GIDs</td> |
33 | <tr class="field"><th class="field-name">Title:</th><td class="field-body">Portage Management of UIDs/GIDs</td> |
| 35 | </tr> |
34 | </tr> |
| 36 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.3</td> |
35 | <tr class="field"><th class="field-name">Version:</th><td class="field-body">1.4</td> |
| 37 | </tr> |
36 | </tr> |
| 38 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs/xml/htdocs/proj/en/glep/glep-0027.txt?cvsroot=gentoo">2004/07/20 18:19:27</a></td> |
37 | <tr class="field"><th class="field-name">Last-Modified:</th><td class="field-body"><a class="reference" href="http://www.gentoo.org/cgi-bin/viewcvs/xml/htdocs/proj/en/glep/glep-0027.txt?cvsroot=gentoo">2005/09/15 02:39:54</a></td> |
| 39 | </tr> |
38 | </tr> |
| 40 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Mike Frysinger <vapier at gentoo.org></td> |
39 | <tr class="field"><th class="field-name">Author:</th><td class="field-body">Mike Frysinger <vapier at gentoo.org></td> |
| 41 | </tr> |
40 | </tr> |
| 42 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Draft</td> |
41 | <tr class="field"><th class="field-name">Status:</th><td class="field-body">Approved</td> |
| 43 | </tr> |
42 | </tr> |
| 44 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
43 | <tr class="field"><th class="field-name">Type:</th><td class="field-body">Standards Track</td> |
| 45 | </tr> |
44 | </tr> |
| 46 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="glep-0012.html">text/x-rst</a></td> |
45 | <tr class="field"><th class="field-name">Content-Type:</th><td class="field-body"><a class="reference" href="http://www.python.org/peps/glep-0012.html">text/x-rst</a></td> |
| 47 | </tr> |
46 | </tr> |
| 48 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">29 May 2004</td> |
47 | <tr class="field"><th class="field-name">Created:</th><td class="field-body">29 May 2004</td> |
| 49 | </tr> |
48 | </tr> |
| 50 | <tr class="field"><th class="field-name">Post-History:</th><td class="field-body">29-May-2004, 20-Jul-2004</td> |
49 | <tr class="field"><th class="field-name">Post-History:</th><td class="field-body">29-May-2004, 20-Jul-2004</td> |
| 51 | </tr> |
50 | </tr> |
| … | |
… | |
| 111 | <h1><a class="toc-backref" href="#id5" name="specification">Specification</a></h1> |
110 | <h1><a class="toc-backref" href="#id5" name="specification">Specification</a></h1> |
| 112 | <div class="section" id="portage-structure"> |
111 | <div class="section" id="portage-structure"> |
| 113 | <h2><a class="toc-backref" href="#id6" name="portage-structure">Portage Structure</a></h2> |
112 | <h2><a class="toc-backref" href="#id6" name="portage-structure">Portage Structure</a></h2> |
| 114 | <div class="section" id="defining-accounts"> |
113 | <div class="section" id="defining-accounts"> |
| 115 | <h3><a class="toc-backref" href="#id7" name="defining-accounts">Defining Accounts</a></h3> |
114 | <h3><a class="toc-backref" href="#id7" name="defining-accounts">Defining Accounts</a></h3> |
| 116 | <p>A new directory will need to be added to the rsync tree to store the |
115 | <p>New directories will need to be added to the rsync tree to store the files |
| 117 | files that define the default values for new accounts.</p> |
116 | that define the default values for new accounts. They will be stored on a |
|
|
117 | per-profile basis, that way sub-profiles may easily override parent profiles. |
|
|
118 | The default location will be the base profile since all other profiles inherit |
|
|
119 | from there.</p> |
| 118 | <pre class="literal-block"> |
120 | <pre class="literal-block"> |
| 119 | portage/profiles/accounts/ |
121 | portage/profiles/base/accounts/ |
| 120 | user/<username>.xml |
122 | user/<username> |
| 121 | group/<groupname>.xml |
123 | group/<groupname> |
| 122 | accounts.xml |
124 | accounts |
| 123 | </pre> |
125 | </pre> |
| 124 | <p>The files are named with the respective user/group name since they need |
126 | <p>The files are named with the respective user/group name since they need |
| 125 | to be unique in their respective domains. For example, the file |
127 | to be unique in their respective domains. For example, the file |
| 126 | detailing the ntp user would be located accounts/user/ntp.xml. Each |
128 | detailing the ntp user would be located accounts/user/ntp. Each |
| 127 | username.xml file will detail the required information about each user. |
129 | username file will detail the required information about each user. |
| 128 | Certain account features that exist on one class of systems (Linux) but |
130 | Certain account features that exist on one class of systems (Linux) but |
| 129 | not on others (*BSD) can be tagged as such. Each groupname.xml will |
131 | not on others (*BSD) can be redefined in their respective subprofiles. Each |
| 130 | follow similar guidelines. The accounts.xml will be used to describe |
132 | groupname will follow similar guidelines. The accounts file will be used to |
| 131 | global account defaults such as the default range of 'valid system' ids. |
133 | describe global account defaults such as the default range of 'valid system' |
| 132 | For example, if the UID 123 is already used on a system, but the ntp |
134 | ids. For example, if the UID 123 is already used on a system, but the ntp |
| 133 | user defaults to '123', we obviously cannot just duplicate it. So we |
135 | user defaults to '123', we obviously cannot just duplicate it. So we |
| 134 | would select the next available UID on the system based upon the range |
136 | would select the next available UID on the system based upon the range |
| 135 | defined here.</p> |
137 | defined here.</p> |
| 136 | </div> |
138 | </div> |
| 137 | <div class="section" id="local-overrides"> |
139 | <div class="section" id="local-overrides"> |
| 138 | <h3><a class="toc-backref" href="#id8" name="local-overrides">Local Overrides</a></h3> |
140 | <h3><a class="toc-backref" href="#id8" name="local-overrides">Local Overrides</a></h3> |
| 139 | <p>Following the tried and true style of custom local portage files being |
141 | <p>Following the tried and true style of custom local portage files being |
| 140 | found in /etc/portage, this new system will follow the same. Users can |
142 | found in /etc/portage, this new system will follow the same. Users can |
| 141 | setup their own directory heirarchy in /etc/portage/accounts/ that mimics |
143 | setup their own directory heirarchy in /etc/portage/profile/accounts/ that |
| 142 | the heirarchy found in the portage tree. When portage attempts to add a |
144 | mimics the heirarchy found in the portage tree. When portage attempts to add |
| 143 | new user, it will first check /etc/portage/accounts/user/<username>.xml. |
145 | a new user, it will first check /etc/portage/profile/accounts/user/<username>. |
| 144 | If it does not exist, it will simply use the default definition in the |
146 | If it does not exist, it will simply use the default definition in the |
| 145 | portage tree.</p> |
147 | portage tree.</p> |
| 146 | </div> |
148 | </div> |
| 147 | </div> |
149 | </div> |
| 148 | <div class="section" id="developer-interface"> |
150 | <div class="section" id="developer-interface"> |
| … | |
… | |
| 198 | account system, add a DEPEND for the required version of portage to the |
200 | account system, add a DEPEND for the required version of portage to the |
| 199 | ebuild.</p> |
201 | ebuild.</p> |
| 200 | </div> |
202 | </div> |
| 201 | <div class="section" id="references"> |
203 | <div class="section" id="references"> |
| 202 | <h1><a class="toc-backref" href="#id17" name="references">References</a></h1> |
204 | <h1><a class="toc-backref" href="#id17" name="references">References</a></h1> |
| 203 | <table class="footnote" frame="void" id="apibug" rules="none"> |
205 | <table class="docutils footnote" frame="void" id="apibug" rules="none"> |
| 204 | <colgroup><col class="label" /><col /></colgroup> |
206 | <colgroup><col class="label" /><col /></colgroup> |
| 205 | <tbody valign="top"> |
207 | <tbody valign="top"> |
| 206 | <tr><td class="label"><a name="apibug">[1]</a></td><td><a class="reference" href="http://bugs.gentoo.org/show_bug.cgi?id=8634">http://bugs.gentoo.org/show_bug.cgi?id=8634</a></td></tr> |
208 | <tr><td class="label"><a name="apibug">[1]</a></td><td><a class="reference" href="http://bugs.gentoo.org/show_bug.cgi?id=8634">http://bugs.gentoo.org/show_bug.cgi?id=8634</a></td></tr> |
| 207 | </tbody> |
209 | </tbody> |
| 208 | </table> |
210 | </table> |
| 209 | </div> |
211 | </div> |
| 210 | <div class="section" id="copyright"> |
212 | <div class="section" id="copyright"> |
| 211 | <h1><a class="toc-backref" href="#id18" name="copyright">Copyright</a></h1> |
213 | <h1><a class="toc-backref" href="#id18" name="copyright">Copyright</a></h1> |
| 212 | <p>This document has been placed in the public domain.</p> |
214 | <p>This document has been placed in the public domain.</p> |
| 213 | </div> |
215 | </div> |
| 214 | </div> |
|
|
| 215 | |
216 | |
|
|
217 | </div> |
|
|
218 | <div class="footer"> |
| 216 | <hr class="footer" /> |
219 | <hr class="footer" /> |
| 217 | <div class="footer"> |
|
|
| 218 | <a class="reference" href="glep-0027.txt">View document source</a>. |
220 | <a class="reference" href="glep-0027.txt">View document source</a>. |
| 219 | Generated on: 2004-07-20 18:19 UTC. |
221 | Generated on: 2005-09-18 20:48 UTC. |
| 220 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
222 | Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source. |
|
|
223 | |
| 221 | </div> |
224 | </div> |
| 222 | </body> |
225 | </body> |
| 223 | </html> |
226 | </html> |
| 224 | |
227 | |