Re: problemi con Wvdial + Leafnode
Il giorno Fri, 19 Oct 2001, redcinghios così ha scritto:
|From: redcinghios <redcinghios@libero.it>
|To: debian-italian@lists.debian.org
|Date: Fri, 19 Oct 2001 16:56:35 +0200
|Subject: problemi con Wvdial + Leafnode
|
|Salve a tutta la ML...
|ricorro al vs. aiuto per risolvere alcuni problemi che riguardano l' utilizzo
|di una Debian "Potato".
|
|1) Come mai non riesco ad utilizzare Wvdial da utente "non-root"?
[...]
|nel file di log mi ritrovo il seguente msg:
|Can't open options file/etc/ppp/peers/wvdial: Permission denied
Ti passo la mia situazione. Il gruppo pppusers l'ho creato io e, ovviamente, ne
faccio parte (anzi, ne sono amministratore).
-rw------- 1 root pppusers 147 Oct 11 18:40 /etc/ppp/chap-secrets
-rw------- 1 root pppusers 44 Oct 11 18:40 /etc/ppp/pap-secrets
-rw-r----- 1 root dialout 430 Oct 11 18:36 /etc/wvdial.conf
-rwsr-xr-- 1 root pppusers 70064 Jan 7 2000 /usr/bin/wvdial
-rwsr-x--- 1 root pppusers 183504 Sep 22 15:42 /usr/sbin/pppd
-rw-r----- 1 root pppusers 651 Oct 19 15:44 /etc/ppp/peers/interfree
Tua situazione:
/etc/ppp/chap-secrets -rwS---rw- root dip
/etc/ppp/pap-secrets -rwS---rw- root dip
/etc/wvdial.conf -rwS---r-- root root
/usr/sbin/wvdial -rwsr-xr-x root root
/usr/sbin/pppd -rwsr-xr-x root dip
/etc/ppp/peers/wvdial -rwSr--r-- root root
Il gruppo "dip" ha numero 30 e quindi è un gruppo di amministrazione, mentre
il gruppo pppusers ha numero 106 (da me), e quindi è un gruppo di banali utenti
:-) Se ricordo bene, il numero discriminante è 100.
|Con Red-Hat 7.1 il tutto funziona correttamente.
|Inoltre, secondo voi, è meglio utilizzare wvdial oppure pon - poff per
|effettuare un collegamento ad internet?
Consiglio pon e poff, perché usano chat+pppd e quindi puoi taroccare minutamente
la procedura di chat per stabilire la linea con il provider, invece di lasciar
fare tutto a quel saputo, presuntuoso e saccente di wvdial (scusa, do sempre di
acido contro le procedure super-automatizzate simil-windowsiane). Eppoi,
essendo pon e poff degli script bash, puoi taroccare loro stessi. Ad esempio,
ti passo il mio pon (scusate la lunghezza), che ho alterato quando avevo delle
difficoltà con pppd e volevo sapere per bene quale errore lo faceva fallire
senza spulciare sempre i log.
============================================================
#!/bin/sh
tail="off"
if test "$1" = "-q" # Se il primo parametro è "-q" nientre tracing di pppd.log
then shift
else /usr/bin/tail -n0 -f /var/log/pppd.log | /usr/bin/cut -d " " -f 6- &
tail=$!
fi
/usr/sbin/pppd call ${1:-interfree}
exst=$?
if test $tail != "off"
then
case $exst in
0) echo "Pppd has detached, connection successfully established."
if ! pidof pppstats > /dev/null
then /usr/sbin/pppstats -w 5 > /dev/tty8 &
fi ;;
1) echo "A fatal error of some kind occurred." ;;
2) echo "An error was detected in processing the options given." ;;
3) echo "Pppd is not setuid-root and the invoking user is not root." ;;
4) echo "The kernel does not support PPP." ;;
5) echo "Pppd terminated because it was sent a SIGINT, SIGTERM or SIGHUP signal." ;;
6) echo "The serial port could not be locked." ;;
7) echo "The serial port could not be opened." ;;
8) echo "The connect script failed (returned a non-zero exit status)." ;;
9) echo "The command specified as the argument to the pty option could not be run." ;;
10) echo "The PPP negotiation failed." ;;
11) echo "The peer system failed (or refused) to authenticate itself." ;;
12) echo "The link was terminated because it was idle." ;;
13) echo "The link was terminated because the connect time limit was reached." ;;
14) echo "Callback was negotiated and an incoming call should arrive shortly." ;;
15) echo "The link was terminated because the peer is not responding to echo requests." ;;
16) echo "The link was terminated by the modem hanging up." ;;
17) echo "The PPP negotiation failed because serial loopback was detected." ;;
18) echo "The init script failed (returned a non-zero exit status)." ;;
19) echo "We failed to authenticate ourselves to the peer." ;;
esac
/bin/kill -SIGTERM $tail
fi
exit $exst
============================================================
Per funzionare, pppd non deve fare il detach prima di aver stabilito una
connessione ppp. Metti nel file /etc/ppp/peers/tuo_peer updetach.
[...]
|5)Ho installato il pacchetto printtool per la gestione della stampante.
|Quando eseguo una qualsiasi stampa, utilizzando "lpr", all' inizio del foglio
|mi compare questo msg: "No filename for parameters given. Assume stcany"
|cosa significa?
|
Mah, forse si capisce vedendo il file /etc/printcap e il file filtro che usa.
Sandro
--
Du liefst zu rasch: Corresti troppo veloce:
Jetzt erst, wo du muede bist solo ora, che sei stanco,
holt dein Glueck dich ein. ti raggiunge la tua felicità
Reply to: