pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: About a rc.d script and "--user ${puser}"
cemkayali%eticaret.com.tr@localhost said:
> I have used the patch
There was a little bug in my patch (missing "&") - I'll
append a new one. The bug shouldn't have an effect unless
you pass a group explicitely on "privocy" invocation.
(There is little point to do so because "privoxy" will
pick up the primary group of the user specified which
is what we want.)
best regards
Matthias
-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
$NetBSD$
--- ./jcc.c.orig 2007-12-16 19:32:46.000000000 +0100
+++ ./jcc.c
@@ -3299,6 +3299,10 @@ int main(int argc, const char *argv[])
{
log_error(LOG_LEVEL_FATAL, "Cannot setgid(): Insufficient
permissions.");
}
+ if (grp)
+ setgroups(1, &grp->gr_gid);
+ else
+ initgroups(pw->pw_name, pw->pw_gid);
if (do_chroot)
{
if (!pw->pw_dir)
Home |
Main Index |
Thread Index |
Old Index