1 |
Hi, |
2 |
|
3 |
In the past, I had already some implementation for that, where |
4 |
enewuser()/enewgroup() in case of not being root (uid zero) used some |
5 |
'root.sh' file, containing real commands for the target-userland to be |
6 |
executed by real-root, as well as easy-to-parse comments containing the |
7 |
arguments of previous enewuser/enewgroup calls. |
8 |
|
9 |
What was missing there: to empty the file once it was executed by |
10 |
real-root user, because i had no need yet to really add the users as i |
11 |
did not need to start some daemons installed from prefix-portage yet. |
12 |
|
13 |
But i needed this temporary "passwd-database" to have egetent() |
14 |
recognize not-yet-physically-executed enewuser() calls in addition to |
15 |
real getent-calls. |
16 |
|
17 |
In the attached 'eutils.eclass' look for access to file |
18 |
'var/spool/emerge/doasroot' and calls to edoasroot(). |
19 |
|
20 |
-- haubi |
21 |
PS: I'm happy to be back again to prefix-portage, currently trying to |
22 |
get some portage-alt-prefix packages to fly on x86-redhat-linux. |
23 |
|
24 |
On Tue, 2006-06-13 at 11:00 +0200, Grobian wrote: |
25 |
> On 12-06-2006 15:20:56 -0600, m h wrote: |
26 |
> > Folks- |
27 |
> > Has anyone thought out user management in a prefix setting. An |
28 |
> > example being apache or mysql which usually run as their own users. |
29 |
> > Is this the plan for prefix too? |
30 |
> |
31 |
> The last ideas for OSX were to have some propagation tools from prefix |
32 |
> to host OS. This is a bit scary, but would mean useradd actions just |
33 |
> get forwarded. This requires root privileges of course. The portage |
34 |
> people seem to work on something to keep the administration of users |
35 |
> added by Portage, and keep that administration synchronised with the |
36 |
> real password backend. This initiative is very nice for prefix of |
37 |
> course, as it would probably allow us to just plug on that |
38 |
> administration... Sorry, I have no pointers... |
39 |
> |
40 |
> -- |
41 |
> Fabian Groffen |
42 |
> Gentoo for Mac OS X Project |
43 |
-- |
44 |
Michael Haubenwallner SALOMON Automation GmbH |
45 |
Forschung & Entwicklung A-8114 Friesach bei Graz |
46 |
mailto:michael.haubenwallner@×××××××.at http://www.salomon.at |
47 |
No HTML/MIME please, see http://expita.com/nomime.html |
48 |
|
49 |
-- |
50 |
gentoo-osx@g.o mailing list |