From: SourceForge.net <no...@so...> - 2007-11-30 17:38:26
|
Bugs item #1827316, was opened at 2007-11-06 23:27 Message generated for change (Comment added) made by mathewhennessy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=1827316&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: macosx-specific Group: version 3.0.6 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: David Schmidt (david__schmidt) Summary: startup one OSX Leopard fails w/ clean install Initial Comment: installed Privoxy 3.0.6 on new OSX 10.5 Leopard system when attempting to start it the following is reported sudo SystemStarter start Privoxy Password: Starting Privoxy Nov 06 20:21:17 Privoxy(00000040) Fatal error: User privoxy not found. Nov 06 20:21:17 Privoxy(00000040) Fatal error: User privoxy not found. contact me via : tel...@ma... ---------------------------------------------------------------------- Comment By: Mathew Hennessy (mathewhennessy) Date: 2007-11-30 12:38 Message: Logged In: YES user_id=1125424 Originator: NO (err, the page I saw for this bug must have been cached :p) ---------------------------------------------------------------------- Comment By: Mathew Hennessy (mathewhennessy) Date: 2007-11-30 12:35 Message: Logged In: YES user_id=1125424 Originator: NO I get this error as well, and there is an entry in /etc/passwd . The OS X installer automatically creates it if it's not there. bash-3.2# SystemStarter -vn start Privoxy Starting Privoxy Nov 30 12:34:52 Privoxy(00000068) Fatal error: User privoxy not found. Nov 30 12:34:52 Privoxy(00000068) Fatal error: User privoxy not found. bash-3.2# grep privoxy /etc/passwd privoxy:*:100:100:Privoxy Daemon:/var/empty:/usr/bin/false bash-3.2# ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-25 14:49 Message: Logged In: NO Netinfo has been replaced with Directory Services and as a result, I wrote the following script to create the necessary "privoxy" user and group. ==== BEGIN ==== #!/bin/bash dscl /Local/Default -create /Groups/_privoxy dscl /Local/Default -append /Groups/_privoxy RecordName privoxy dscl /Local/Default -create /Groups/_privoxy Password * dscl /Local/Default -create /Groups/_privoxy PrimaryGroupID 601 dscl /Local/Default -create /Groups/_privoxy RealName "privoxy users" dscl /Local/Default -create /Users/_privoxy dscl /Local/Default -append /Users/_privoxy RecordName privoxy dscl /Local/Default -create /Users/_privoxy NFSHomeDirectory /var/empty dscl /Local/Default -create /Users/_privoxy Password * dscl /Local/Default -create /Users/_privoxy PrimaryGroupID 601 dscl /Local/Default -create /Users/_privoxy RealName "privoxy server" dscl /Local/Default -create /Users/_privoxy UniqueID 601 dscl /Local/Default -create /Users/_privoxy UserShell /usr/bin/false ==== END ==== You must use the "sudo" command to execute the above script in order to create the new user and group. Please feel free to use this in the official distribution of privoxy. contact me: mar...@ya... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-11-25 14:36 Message: Logged In: NO I have yet to convert my custom StartupItem to the Apple-preferred LaunchDaemon. However, my StartupItem still works perfectly in Tiger and Leopard. Here is the code: ==== BEGIN ==== #!/bin/bash ## # Privoxy ## . /etc/rc.common PRIVOXY_PATH=/usr/local/sbin PRIVOXY_PIDFILE=/var/run/privoxy.pid PRIVOXY_USER=privoxy PRIVOXY_CONFIG=/usr/local/etc/privoxy/config PRIVOXY_LOG=/var/log/privoxy.log StartService () { if [ -x ${PRIVOXY_PATH}/privoxy ]; then if ! pid=$(GetPID privoxy); then echo "Starting privacy enhancing proxy" ${PRIVOXY_PATH}/privoxy --pidfile ${PRIVOXY_PIDFILE} --user ${PRIVOXY_USER} ${PRIVOXY_CONFIG} >> ${PRIVOXY_LOG} 2>&1 fi fi } StopService () { if pid=$(GetPID privoxy); then echo "Stopping privacy enhancing proxy" kill -TERM "${pid}" else echo "privoxy is not running." fi } RestartService () { if pid=$(GetPID privoxy); then echo "Restarting privacy enhancing proxy" kill -HUP "${pid}" else StartService fi } RunService "$1" ==== END ==== Please feel free to use this in the official distribution of privoxy. contact me: mar...@ya... ---------------------------------------------------------------------- Comment By: pornel (pornel) Date: 2007-11-14 07:04 Message: Logged In: YES user_id=269973 Originator: NO On Leopard this command seems to do the trick: sudo dscl localhost -create /Local/Default/Users/privoxy and then you have to correct permissions in /Library/Privoxy to let privoxy read config, etc. ---------------------------------------------------------------------- Comment By: pornel (pornel) Date: 2007-11-14 06:35 Message: Logged In: YES user_id=269973 Originator: NO AFAIK Leopard had scrapped old netinfo manager, so installer needs to use a different method for creating users (or just use nobody). BTW: I couldn't find user/group setting in config. ---------------------------------------------------------------------- Comment By: Hal Burgiss (hal9) Date: 2007-11-07 06:24 Message: Logged In: YES user_id=322640 Originator: NO I am not familiar with the osx installation scripts, but a typical privoxy installation has a user named 'privoxy' that it runs as, so as not to run with root privileges. You can of course create a privoxy user, or you can privoxy as another user that exists on the system (eg 'nobody'), to workaround this problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=111118&aid=1827316&group_id=11118 |