Newsgroup: it.comp.os.linux.software
Titolo: Leafnode(leggermente lungo)

Come ho installato Leafnode su una Red Hat 6.0 e come
non mi funziona:
[root@localhost /root]#   rpm -Uvh leafnode-1.9.13-1.i386.rpm
******************************************************************
[root@localhost /root]# usermod -G internet,games,news Carola
(nella speranza di dare i permessi di news all'utente Carola)
******************************************************************
# /etc/profile
# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc
PATH="$PATH:/usr/X11R6/bin"
PS1="[\u@\h \W]\\$ "
ulimit -c 1000000
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
	umask 002
else
	umask 022
fi
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
NNTPSERVER="127.0.0.1"
SLANG_EDITOR="mcedit %s"
export NNTPSERVER SLANG_EDITOR
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
INPUTRC=/etc/inputrc
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL INPUTRC
for i in /etc/profile.d/*.sh ; do
	if [ -x $i ]; then
		. $i
	fi
done
unset i
******************************************************************
# inetd.conf	This file describes the services that will be available
.
.
.
nntp	stream	tcp	nowait	news	/usr/sbin/tcpd	/usr/sbin/leafnode
******************************************************************
[root@localhost /root]# kill -HUP  `cat /var/run/inetd.pid`
******************************************************************
#
# hosts.deny	This file describes the names of the hosts which are
#		*not* allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!
leafnode: ALL EXCEPT LOCAL
******************************************************************
Modifiche in /etc/leafnode/config
server = 
news.tin.it
expire = 20
maxfetch = 400
maxage = 20
******************************************************************
/var/spool/news   e tutto il suo contenuto č proprietą del gruppo 'news'
                  al quale č iscritta 'Carola'
******************************************************************
[Carola@localhost Carola]$ /usr/sbin/fetchnews -vvv
/usr/sbin/fetchnews: must be run as news or root
******************************************************************
In etc/ppp/ip-on :
fetchnews -vvv
Lo esegue come fosse 'root'? 
Non ha scaricato un bel niente!
*****************************************************************
Entro come utente news:
bash$ fetchnews -vvv
sh: fetchnews: command not found
bash$ /usr/sbin/fetchnews -vvv
1.9.13: verbosity level is 3
Reading configuration failed, exiting (see syslog for more information).
bash$
********************
Come root:
[root@localhost Carola]# /usr/sbin/fetchnews -vvv
1.9.13: verbosity level is 3
Reading configuration failed, exiting (see syslog for more information).
[root@localhost Carola]# 
**
Questo č tutto!
Un grazie a chi vorrą rispondermi.
Carola

 Reading configuration failed, exiting (see syslog for more information).
L'hai guardato il syslog ? Mi pare che di default la compilazione di
leafnode pone config in /usr/lib/leafnode/
Il log in /var/log cosa dice ?
-- 
                                                                     __
 __                                                              _  ///
| _        Student in Computer Science, Swiss Federal Institute  \\///
|__|iambo      of Technology - mailto:
ggia...@iiic.ethz.ch
       \X/

 Il log in /var/log cosa dice ?
in /var/log ci sono i seguenti files:
[Carola@localhost Carola]$ ls -al /var/log
total 603
drwxr-xr-x   6 root     root         1024 Apr 29 20:17 .
drwxr-xr-x  18 root     root         1024 Apr 29 20:11 ..
-rw-r--r--   1 root     root        61183 May  5 09:09 boot.log
-rw-------   1 root     root         7978 May  5 09:30 cron
-rw-r--r--   1 root     root         2470 May  5 09:09 dmesg
-rw-r--r--   1 root     root            0 Apr 29 20:07 htmlaccess.log
drwxr-xr-x   2 root     root         1024 Apr 29 20:17 httpd
-rw-r--r--   1 root     root       146292 May  5 09:10 lastlog
-rw-------   1 root     root         9248 May  5 09:09 maillog
-rw-------   1 root     root       244376 May  5 09:11 messages
-rw-r--r--   1 root     root           86 Apr 29 20:17 netconf.log
drwxrwxr-x   3 news     news         1024 Apr 29 21:01 news
drwxr-xr-x   2 root     root         1024 Apr 16  1999 samba
-rw-------   1 root     root         1648 May  5 09:10 secure
-rw-r--r--   1 root     root          616 May  5 09:09 
sendmail.st
-rw-------   1 root     root         1217 May  5 09:09 spooler
drwxr-xr-x   2 uucp     uucp         1024 Apr 29 20:11 uucp
-rw-rw-r--   1 root     utmp       265728 May  5 09:10 wtmp
-rw-------   1 root     root            0 Apr 29 20:11 xferlog
[Carola@localhost Carola]$ 
Qual'è il syslog ?
Inoltre:
[Carola@localhost Carola]$ ls -al /var/log/news
total 5
drwxrwxr-x   3 news     news         1024 Apr 29 21:01 .
drwxr-xr-x   6 root     root         1024 Apr 29 20:17 ..
drwxrwxr-x   2 news     news         1024 Apr 19  1999 OLD
-rw-rw-r--   1 news     news          341 May  2 19:12 errlog
-rw-rw-r--   1 news     news            0 Apr 29 20:17 news
-rw-rw-r--   1 news     news            0 Apr 29 20:05 news.crit
-rw-rw-r--   1 news     news            0 Apr 29 20:05 news.err
-rw-rw-r--   1 news     news            0 Apr 29 20:05 news.notice
-rw-rw----   1 news     news          825 May  3 22:01 nntpsend.log
[Carola@localhost Carola]$ 
** Non so se questo è importante ma:
[Carola@localhost Carola]$ cat /var/log/news/errlog
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
INND exiting because of signal
Bye

non mi funziona:
[snip]
Qui trovi un howto breve ma chiaro:
http://www.tux.org/pub/sunsite/docs/howto/mini/News-Leafsite

Bye
BINGO!!! (scusa se non ti ho risposto prima via email, sono tornato
oggi)
COmunque, sembra che tua abbia installato sia INN che leafnode, che si
stanno scannando... ;-)
rimuovi INN con 'rpm -e inn' e riprova, ora dovrebbe andare... (spero)

 rimuovi INN con 'rpm -e inn' e riprova, ora dovrebbe andare... (spero)
Eureka,
ho rimosso tutto, reinstallato Leafnode come avevo fatto prima e ora
funziona benissimo !
Non era difficile... avrei solo dovuto sapere dell'esistenza di INN
l'antagonista...
Grazie a tutti
Carola