NetBSD-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}"
Hello!
I placed the patch into /usr/pkgsrc/www/privoxy/patches/patch-af
#cd /usr/pkgsrc/www/privoxy
#make clean
#make makepatchsum
#make update clean
#cp /usr/pkg/share/examples/rc.d/privoxy /etc/rc.d/privoxy
#cd /usr/pkg/etc/privoxy
#chown root:wheel *
#chmod 664*
#/etc/rc.d/privoxy onerestart
localhost# ps ax -O uid,gid,groups=xxxxxxxxxxxxxxxxx|grep privoxy
4923 1004 1002 1002 ? ZLsl 0:00.08
/usr/pkg/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy
/usr/pkg/etc/privoxy/config
localhost#
From privoxy administration page:
/usr/pkg/etc/privoxy/standard.action View
<http://config.privoxy.org/show-status?file=actions&index=0>
/usr/pkg/etc/privoxy/default.action View
<http://config.privoxy.org/show-status?file=actions&index=1> *No write
access.*
/usr/pkg/etc/privoxy/user.action View
<http://config.privoxy.org/show-status?file=actions&index=2> *No write
access.*
Well, it looks like it worked...
Maybe some of /usr/pkg/share/examples/rc.d/* scripts have similar
problems if they are installed as service.
PS: In previous emails i said chmod=661 which should be chmod=664 --
read access to everyone.
Regards,
Matthias Drochner, 02/03/09 12:40:
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
-------------------------------------------------------------------
-------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index