* [gentoo-user] fcrontab - what am I missing [SOLVED]
@ 2009-10-23 15:51 Helmut Jarausch
2009-10-23 16:55 ` Alan McKinnon
0 siblings, 1 reply; 2+ messages in thread
From: Helmut Jarausch @ 2009-10-23 15:51 UTC (permalink / raw
To: gentoo-user; +Cc: Thibault Godouet
Hi,
after hunting around for some weeks now, I've finally found the culprit
to my permission problems with fcron[tab]
First,
some Gentoo package must have changed the UID of several executables
and directories of the sys-process/fcron package to 'stunnel'
instead of 'fcron'.
I've found and fixed these long ago but still it didn't work.
Now, I've found out, that in
/etc/passwd
the user 'fcron' had a GID which wasn't in /etc/group any longer.
Probably, when sys-process/fcron is reinstalled, portage does not
seem to change the entry in /etc/passwd (which it has created
itself some time ago)
This was a hard one.
Again, many thanks to all of you who have helped me,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] fcrontab - what am I missing [SOLVED]
2009-10-23 15:51 [gentoo-user] fcrontab - what am I missing [SOLVED] Helmut Jarausch
@ 2009-10-23 16:55 ` Alan McKinnon
0 siblings, 0 replies; 2+ messages in thread
From: Alan McKinnon @ 2009-10-23 16:55 UTC (permalink / raw
To: gentoo-user
On Friday 23 October 2009 17:51:19 Helmut Jarausch wrote:
> Hi,
>
> after hunting around for some weeks now, I've finally found the culprit
> to my permission problems with fcron[tab]
>
> First,
> some Gentoo package must have changed the UID of several executables
> and directories of the sys-process/fcron package to 'stunnel'
> instead of 'fcron'.
> I've found and fixed these long ago but still it didn't work.
> Now, I've found out, that in
> /etc/passwd
> the user 'fcron' had a GID which wasn't in /etc/group any longer.
> Probably, when sys-process/fcron is reinstalled, portage does not
> seem to change the entry in /etc/passwd (which it has created
> itself some time ago)
Without looking through the ebuilds, I'd guess the ebuild runs
useradd -r <daemon_name>
which will always lead to your problem sooner or later.
IMNSHO, /etc/{passwd,shadow,group} really should be part of the base install
with all daemon users pre-defined. Use the range 1-99 for this, it will take a
very long time to accumulate more than 99 daemon UIDs and one can confidently
know what UID a given system user required by an ebuild ought to be.
The implementation is obviously more complex than dropping a file on the file
system, so a simple API is required. Nonetheless, the idea is still sound.
The alternate is to expect users to know to run
find / -nouser -o -nogroup
at the magic points where it will be useful. Which is ludicrous.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-23 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 15:51 [gentoo-user] fcrontab - what am I missing [SOLVED] Helmut Jarausch
2009-10-23 16:55 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox