Pagina 2 di 3 primaprima 1 2 3 ultimoultimo
Visualizzazione dei risultati da 11 a 20 su 27
  1. #11
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    153
    la situazione purtroppo rimane...però almeno ho imparato qualche lezione!
    bisognerebbe investigare su cosa vuole dire "Pppd is not setuid-root and the invoking user is not root".

    Però guardando bene su man ho visto che ci sono tanti files che lo compongono:

    /var/run/pppn.pid (BSD or Linux)

    /etc/ppp/pppn.pid Process-ID for pppd process on ppp interface unit n.

    /var/run/ppp-name.pid (BSD or Linux)

    /etc/ppp/ppp-name.pid Process-ID for pppd process for logical link name(see the linkname option).

    /etc/ppp/pap-secrets Usernames, passwords and IP addresses for PAP authentication.
    This file should be owned by root and not readable or writable by any other user. Pppd will log a warning if this is not the case.

    /etc/ppp/chap-secrets Names, secrets and IP addresses for CHAP authentication. As for

    /etc/ppp/pap-secrets, this file should be owned by root and not readable or writable by any other user. Pppd will log a warning if this is not the case.

    /etc/ppp/options
    System default options for pppd, read before user default options or command-line options.

    ~/.ppprc User default options, read before /etc/ppp/options.ttyname.

    /etc/ppp/options.ttyname
    System default options for the serial port being used, read after ~/.ppprc. In forming the ttyname part of this filename, an initial /dev/ is stripped from the port name (if present), and any slashes in the remaining part are converted to dots.

    /etc/ppp/peers A directory containing options files which may contain privi-leged options, even if pppd was invoked by a user other than root. The system administrator can create options files in this directory to permit non-privileged users to dial out without requiring the peer to authenticate, but only to certain trusted peers.



    Che si fa?!!!! dovrò mica scrivere le stesse istruzioni per tutti questi files?!

  2. #12
    no, tranquillo!
    quei file sono di `supporto`, configurazione...ti spiegherò questa sera, quando ritorno!

    in pratica, il demone pppd deve essere impostato come suid...
    in pratica deve avere come user root, grp dip e come premessi rwxrwxr--
    come ti dicevo nel messaggio precedente!
    se dai
    #ls -l `which pppd`
    , cosa ricevi?

  3. #13
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    153
    eccomi!!!

    ricevo:
    -rwxrwxr-- 1 root dip 232536 /usr/sbin/pppd


    è ok?

  4. #14

  5. #15
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    153
    ...tra l'altro l'avevi già scritto alla prima risposta!!

    ..ho riletto il tutto con più attenzione!!

    ah un altra domanda: /dev/ttyS0 che permessi deve avere?

    cia!

  6. #16
    crw-rw---- 1 root dialout 4, 65 2002-03-14 22:51 /dev/ttyS0

    se non ricordo male, non dovrebbe nemmeno servire mettere l'utente nel gruppo dialout... :rollo:

  7. #17
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    153
    l'ho reinstallata e la situazione è sempre la stessa, con la differenza che mi sono ritrovato il modem così (kppp non riusciva a interrogarlo..):
    c--------- 1 root dialout 4, 65 2002-03-14 22:51 /dev/ttyS0

    gli ho dato un bel chmod 777 che l'ha sbloccato.

    La situazione rimane la stessa e volevo riassumere le cose che ho fatto:

    1: sono membro di tutti i gruppi (dialout e dip specialmente)
    2: ho eseguito le istruzioni...

    # chmod u=sxwr `which pppd`
    # chmod g=xwr `which pppd`
    # chmod o=r `which pppd`
    # chown root:dip `which pppd`
    # chmod 775 `which kppp`
    # chown root:dip `which kppp`
    # chgrp dialout /dev/ttyS0
    # adduser tuoutente dip
    # adduser tuoutente dialout

    ed in più
    chmod u+s `which pppd`

    Risultato:
    apro mozilla-1.7.2, nel momento in cui mi collego ad un sito mi visualizza un popup dicendomi che non lo trova (quindi senza connettersi). Con root invece navigo tranquillamente!
    ma com'è possibile?

  8. #18
    uhm...il fatto che tu riesca a connetterti, esclude i problemi coi permessi dei files..

    da shell pinghi i vari siti?

  9. #19
    Utente di HTML.it
    Registrato dal
    Feb 2002
    Messaggi
    153
    basta fare
    ping sito?
    stasera provo...

  10. #20

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.