| Summary: | freenet still doesn't start (maybe not because of start-freenet.sh :) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kasper Souren <Kasper.Souren> |
| Component: | New packages | Assignee: | Brandon Low (RETIRED) <lostlogic> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | java, m.debruijne, rich0 |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Kasper Souren
2003-09-05 14:11:50 UTC
I just merged freenet-0.5.2.1-r5 - since it has been unmasked. After accepting the revisions to init.d/freenet I am unable to start freenet. I did a little tinkering with the init file - it does get down to the command to run start-freenet.sh, and it seems to have a valid $JAVA, JAVA_ARGS, and CLASSPATH. emerge info: Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,2.2.5-r4, 2.6.0-test4-mm1-rf16) ================================================================= System uname: 2.6.0-test4-mm1-rf16 i686 Pentium III (Coppermine) ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /opt/zetagrid /var/freenet /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs userpriv usersandbox gpg severe" GENTOO_MIRRORS="http://gentoo.noved.org/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga ggi tcltk java guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr scanner gnome -3dnow alsa samba" in order to get this to work I had change two things.
***disclaimer***
I'm *no* security expert so this may be bad advice from a security stand point
(so please if someone knows better then me please speak up).
I changed freenet's /etc/password line from
freenet:x:1001:407:freenet:/var/empty:/dev/null
to
freenet:x:1001:407:freenet:/var/freenet:/bin/bash
and in the /etc/init.d/freenet file I changed the run line from
nice -n ${FREENET_NICENESS} su freenet -- /usr/bin/start-freenet.sh > /var/freenet/freenet.pid
to
nice -n ${FREENET_NICENESS} su freenet -c "/usr/bin/start-freenet.sh > /var/freenet/freenet.pid"
loks like a typo on the -c option I think.
I couldn't get freenet to run under the user id "freenet" without giving that user id an actual shell in /etc/password it seemed to me the othe other deamons that run
under a different user ids have a main process that runs as "root" which spawn subprocesses that run under the "none shelled" user ids. freenet doesn't seem to be designed to run in this way, so running as root may be better. I don't know. If your security knowledgable please fill us in.
I know this isnt the proper forum for this, but M.deBruijne@HCCNet.nl, do you happen to be a Mark who lived in North Carolina at one point? Nope, I'm Michiel de Bruijne and I have lived all my life in the Netherlands. Thanks, should be fixed in -r6, using sudo instead of su seems to make it better. Thanks to Kasper for all the help! |