/[gentoo]/xml/htdocs/proj/en/glep/glep-0027.html
Gentoo

Diff of /xml/htdocs/proj/en/glep/glep-0027.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
6PEP, see http://www.python.org/peps/pep-0001.html for instructions and links 6PEP, see http://www.python.org/peps/pep-0001.html for instructions and links
7to templates. DO NOT USE THIS HTML FILE AS YOUR TEMPLATE! 7to 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>
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">Draft</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
117files that define the default values for new accounts.</p> 116that define the default values for new accounts. They will be stored on a
117per-profile basis, that way sub-profiles may easily override parent profiles.
118The default location will be the base profile since all other profiles inherit
119from there.</p>
118<pre class="literal-block"> 120<pre class="literal-block">
119portage/profiles/accounts/ 121portage/profiles/base/accounts/
120 user/&lt;username&gt;.xml 122 user/&lt;username&gt;
121 group/&lt;groupname&gt;.xml 123 group/&lt;groupname&gt;
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
125to be unique in their respective domains. For example, the file 127to be unique in their respective domains. For example, the file
126detailing the ntp user would be located accounts/user/ntp.xml. Each 128detailing the ntp user would be located accounts/user/ntp. Each
127username.xml file will detail the required information about each user. 129username file will detail the required information about each user.
128Certain account features that exist on one class of systems (Linux) but 130Certain account features that exist on one class of systems (Linux) but
129not on others (*BSD) can be tagged as such. Each groupname.xml will 131not on others (*BSD) can be redefined in their respective subprofiles. Each
130follow similar guidelines. The accounts.xml will be used to describe 132groupname will follow similar guidelines. The accounts file will be used to
131global account defaults such as the default range of 'valid system' ids. 133describe global account defaults such as the default range of 'valid system'
132For example, if the UID 123 is already used on a system, but the ntp 134ids. For example, if the UID 123 is already used on a system, but the ntp
133user defaults to '123', we obviously cannot just duplicate it. So we 135user defaults to '123', we obviously cannot just duplicate it. So we
134would select the next available UID on the system based upon the range 136would select the next available UID on the system based upon the range
135defined here.</p> 137defined 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
140found in /etc/portage, this new system will follow the same. Users can 142found in /etc/portage, this new system will follow the same. Users can
141setup their own directory heirarchy in /etc/portage/accounts/ that mimics 143setup their own directory heirarchy in /etc/portage/profile/accounts/ that
142the heirarchy found in the portage tree. When portage attempts to add a 144mimics the heirarchy found in the portage tree. When portage attempts to add
143new user, it will first check /etc/portage/accounts/user/&lt;username&gt;.xml. 145a new user, it will first check /etc/portage/profile/accounts/user/&lt;username&gt;.
144If it does not exist, it will simply use the default definition in the 146If it does not exist, it will simply use the default definition in the
145portage tree.</p> 147portage tree.</p>
146</div> 148</div>
147</div> 149</div>
148<div class="section" id="developer-interface"> 150<div class="section" id="developer-interface">
198account system, add a DEPEND for the required version of portage to the 200account system, add a DEPEND for the required version of portage to the
199ebuild.</p> 201ebuild.</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>.
219Generated on: 2004-07-20 18:19 UTC. 221Generated on: 2005-09-15 02:39 UTC.
220Generated 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. 222Generated 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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20