avviare automaticamente firestarter all'avvio di ubuntu

Asked by danlinux

Sto cercando di far partire firestarter all'avvio di ubuntu seguendo le istruzioni descritte nel wiki di ubuntu a questa pagina:http://wiki.ubuntu-it.org/Sicurezza/Firestarter (sezione 'controllo dello stato del firewall').
Il fatto è che quando devo digitare il comando “sudo visudo” e successivamente l'altro comando “nomeutente ALL=NO PASSWD: /usr/sbin/firestarter” non riesco a scrivere nulla ed ho una schermata come questa:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults env_reset

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Ora il comando in questione (nomeutente ALL=NO PASSWD: /usr/sbin/firestarter ) se ho capito bene va digitato dopo l'ultima riga, ma ho provato in tutti i modi e non riesco a scrivere in questo file (in qualunque riga io mi metta) nonostante entri con tutti i privilegi di amministratore. Ora se provo a ridigitare il comando “sudo visudo” ho questo messaggio:

E325: ATTENTION
Found a swap file by the name "/etc/.sudoers.tmp.swp"
          owned by: root dated: Mon Oct 20 19:25:22 2008
         file name: /etc/sudoers.tmp
          modified: YES
         user name: root host name: danlinux-laptop
        process ID: 6342
While opening file "/etc/sudoers.tmp"
             dated: Mon Jun 2 17:49:29 2008

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/sudoers.tmp"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.sudoers.tmp.swp"
    to avoid this message.
"/etc/sudoers.tmp" 23 lines, 470 characters
Press ENTER or type command to continue (se premo invio continuo e mi ritrovo la schermata di prima nella quale non riesco a scrivere nulla)
Qualcuno mi sa spiegare come editare correttamente il file ed ottenere così che firestarter parta automaticamente all'avvio del sistema?

Question information

Language:
Italian Edit question
Status:
Solved
For:
Ubuntu firestarter Edit question
Assignee:
No assignee Edit question
Solved by:
danlinux
Solved:
Last query:
Last reply:
Revision history for this message
paper0k (paper0k) said :
#1

Devi usare Visudo come se fosse Vim, per dettagli puoi far riferimento alla guida presente qui

http://wiki.ubuntu-it.org/Ufficio/EditorDiTesto/Vim

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Non direttamente correlato con Firestarter ma genericamente con i firewall sotto Ubuntu. perchè non provi

ufw - che è il firewall di default per Ubuntu

Che dispone anche di un frontend di configurazione grafico:
http://www.ilbloggatore.com/2008/06/16/interfaccia-grafica-per-ufw-gufw/

http://www.ubuntugeek.com/ufw-uncomplicated-firewall-for-ubuntu-hardy.html
http://www.ubuntugeek.com/gufw-simple-gui-for-ufw-uncomplicated-firewall.html

ciao

Revision history for this message
danlinux (likesuicide) said :
#3

Ok provo entrambe le cose poi vi farò sapere.
Per ora grazie per la risposta e scusate i ritardo.

Revision history for this message
danlinux (likesuicide) said :
#4

Ho scaricato vim e sono riuscito a configurare correttamente il file che controlla firestarter, ora riesco a farlo caricare da solo all'avvio. Grazie mille per il consiglio!